]> git.phdru.name Git - git-scripts.git/commitdiff
Add a script to list repos with assumed unchanged files
authorOleg Broytman <phd@phdru.name>
Wed, 9 Nov 2016 17:11:19 +0000 (20:11 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 9 Nov 2016 17:11:19 +0000 (20:11 +0300)
ls-assumed [new file with mode: 0755]

diff --git a/ls-assumed b/ls-assumed
new file mode 100755 (executable)
index 0000000..2ca55c9
--- /dev/null
@@ -0,0 +1,5 @@
+#! /bin/sh
+
+exec "`dirname \"$0\"`"/do-all \
+   'test "$g" = "$d/.git" || continue; cd "$d" &&' \
+   'test -n "`git ls-files -v | grep ^h`" && echo "$d"'