]> git.phdru.name Git - git-scripts.git/blobdiff - ls-stash
Feat: Split scripts into 3: run in one repo, recursive, in all
[git-scripts.git] / ls-stash
index 93af80db0d3e9e1ec0d1a2f4347b2a013b06f39b..193350820193a6c3b374c90f028a61bd6c0bdf0b 100755 (executable)
--- a/ls-stash
+++ b/ls-stash
@@ -1,5 +1,7 @@
 #! /bin/sh
 
-exec "`dirname \"$0\"`"/do-all \
-   'test "$g" = "$d/.git" || continue; cd "$d" &&' \
-   'test -n "`git stash list`" && echo "$d"'
+d="`git rev-parse --show-toplevel`" &&
+
+if [ -n "$d" ]; then
+   if [ -n "`git stash list`" ]; then echo "$d"; fi
+fi