]> 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 6892f2bdb05a6690916084ccace547bdf755b1ba..5d3808392d8233b223a82b0c556ae1520386551d 100755 (executable)
--- a/ls-status
+++ b/ls-status
@@ -1,9 +1,12 @@
 #! /bin/sh
 
-cd "`dirname \"$0\"`" &&
-prog_dir="`pwd`" &&
-export prog_dir
+d="`git rev-parse --show-toplevel`" &&
 
-exec "$prog_dir"/do-all \
-   'test "$g" = "$d/.git" || continue; cd "$d" &&' \
-   'test -n "`"$prog_dir"/git-status.sh --short`" && echo "$d"'
+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