]> git.phdru.name Git - git-scripts.git/blobdiff - all-status
Feat(status): Copy index and set GIT_INDEX_FILE to avoid touching .git
[git-scripts.git] / all-status
index 60ab248403f596b5666728ee38cf22dfd73f874d..102bf24f4bfe5b884bf8178c3e3cae2c07bb82b1 100755 (executable)
@@ -1,6 +1,9 @@
 #! /bin/sh
 
-prog_dir=`dirname "$0"`
-"$prog_dir"/do-all \
+cd "`dirname \"$0\"`" &&
+prog_dir="`pwd`" &&
+export prog_dir
+
+exec "$prog_dir"/do-all \
    'test "$g" = "$d/.git" || continue; cd "$d" &&' \
-   'echo "----- $d -----" && git status --short --branch || exit 1'
+   'echo "----- $d -----" && "$prog_dir"/git-status.sh --short --branch || exit 1'