summaryrefslogtreecommitdiff
path: root/git/stat.sh
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-07-21 08:45:08 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-07-21 08:45:08 +0200
commit4662e4847402be59197d5ac123cdabb1c760c8a7 (patch)
treea098585c9a777d2596173f38e4990d49457b6ecd /git/stat.sh
parent18193c9635a5f2e926b4faf6d153e42ee7b367f8 (diff)
Add helper git scripts4.0.0
Diffstat (limited to 'git/stat.sh')
-rwxr-xr-xgit/stat.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/git/stat.sh b/git/stat.sh
new file mode 100755
index 0000000..5b9ea45
--- /dev/null
+++ b/git/stat.sh
@@ -0,0 +1,21 @@
+#! /bin/sh
+
+# Assume this script never run via PATH.
+#
+self=`realpath $0`
+. `dirname $self`/modules
+
+wd=`pwd`
+
+for i in $modules; do
+ echo "stat $i" 1>&2
+ cd $i
+ git status
+
+ if [ $? -ne 0 ]; then
+ echo "stat FAILED" 1>&2
+ exit 1
+ fi
+
+ cd $wd
+done