diff options
Diffstat (limited to 'scripts/util/checkgit')
| -rwxr-xr-x | scripts/util/checkgit | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/util/checkgit b/scripts/util/checkgit new file mode 100755 index 0000000..985433a --- /dev/null +++ b/scripts/util/checkgit @@ -0,0 +1,15 @@ +#!/bin/bash +# script checks all git repositories in subdirectory and displays their uncommitted changes + +echo -e "" +for dir in *; do + if [[ -d $dir ]] then + if [[ -d "$dir/.git" ]] then + gStatus=$(git -c color.ui=always -C $dir status -s) + if [[ -n $gStatus ]] then + echo $dir + echo -e "${gStatus}\n" + fi + fi + fi +done |
