]> git.phdru.name Git - git-scripts.git/blobdiff - ls-dirty
Use git ls-files instead of status to avoid touching .git/
[git-scripts.git] / ls-dirty
diff --git a/ls-dirty b/ls-dirty
new file mode 100755 (executable)
index 0000000..d440c40
--- /dev/null
+++ b/ls-dirty
@@ -0,0 +1,5 @@
+#! /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`" && echo "$d"'