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