]> git.phdru.name Git - git-scripts.git/blobdiff - ls-status
Feat: Split scripts into 3: run in one repo, recursive, in all
[git-scripts.git] / ls-status
index e5d64da6e7d318fcf2f40f94f9b7a34bd44b7fb4..5d3808392d8233b223a82b0c556ae1520386551d 100755 (executable)
--- a/ls-status
+++ b/ls-status
@@ -1,5 +1,12 @@
 #! /bin/sh
 
-exec "`dirname \"$0\"`"/do-all \
-   'test "$g" = "$d/.git" || continue; cd "$d" &&' \
-   'test -n "`git status -s`" && echo "$d"'
+d="`git rev-parse --show-toplevel`" &&
+
+if [ -n "$d" ]; then
+   cd "`dirname \"$0\"`" &&
+   prog_dir="`pwd`" &&
+   export prog_dir &&
+   cd "$d" &&
+
+   if [ -n "`"$prog_dir"/git-status.sh --short`" ]; then echo "$d"; fi
+fi