]> git.phdru.name Git - git-scripts.git/commitdiff
Add a script to list repos with stashed files
authorOleg Broytman <phd@phdru.name>
Fri, 10 Jun 2016 12:02:55 +0000 (15:02 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 10 Jun 2016 12:02:55 +0000 (15:02 +0300)
ls-stash [new file with mode: 0755]

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