summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/checkgit15
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/checkgit b/scripts/checkgit
new file mode 100755
index 0000000..985433a
--- /dev/null
+++ b/scripts/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