]> git.phdru.name Git - git-scripts.git/blobdiff - ls-dirty
Feat: Split scripts into 3: run in one repo, recursive, in all
[git-scripts.git] / ls-dirty
index 109296e3bba74901197151ebc53c4ee526c8f5d4..77cad68b9f80f0917d24b02bfed54dd3d0952285 100755 (executable)
--- a/ls-dirty
+++ b/ls-dirty
@@ -1,5 +1,10 @@
 #! /bin/sh
 
-exec "`dirname \"$0\"`"/do-all \
-   'test "$g" = "$d/.git" || continue; cd "$d" &&' \
-   'test -n "`git ls-files --deleted --modified --others --unmerged --killed --exclude-standard --directory --no-empty-directory`" && echo "$d"'
+d="`git rev-parse --show-toplevel`" &&
+
+if [ -n "$d" ]; then
+   if [ -n "`git ls-files --deleted --modified --others --unmerged --killed --exclude-standard --directory --no-empty-directory`" ]
+   then
+      echo "$d"
+   fi
+fi