]> git.phdru.name Git - git-scripts.git/commitdiff
Use git ls-files instead of status to avoid touching .git/
authorOleg Broytman <phd@phdru.name>
Wed, 3 Aug 2016 12:14:10 +0000 (15:14 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 3 Aug 2016 12:14:10 +0000 (15:14 +0300)
ls-dirty [new file with mode: 0755]

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"'