]> git.phdru.name Git - git-scripts.git/blobdiff - ls-status
Feat(submodules/remove): Add option `-c`
[git-scripts.git] / ls-status
index e5d64da6e7d318fcf2f40f94f9b7a34bd44b7fb4..3bcc50cab7970ca060a3f45a6b5a9909b7f9e442 100755 (executable)
--- a/ls-status
+++ b/ls-status
@@ -1,5 +1,9 @@
 #! /bin/sh
 
-exec "`dirname \"$0\"`"/do-all \
-   'test "$g" = "$d/.git" || continue; cd "$d" &&' \
-   'test -n "`git status -s`" && echo "$d"'
+d="`pwd`" &&
+cd "`dirname \"$0\"`" &&
+prog_dir="`pwd`" &&
+export prog_dir &&
+cd "$d" &&
+
+if [ -n "`"$prog_dir"/git-status.sh --short`" ]; then echo "$d"; fi