X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;ds=sidebyside;f=ls-stash;fp=ls-stash;h=193350820193a6c3b374c90f028a61bd6c0bdf0b;hb=bde260ddb033606e9c70830cca48c94962c08021;hp=93af80db0d3e9e1ec0d1a2f4347b2a013b06f39b;hpb=85bb1ca14fceb299bc688a926fcafe6011dcaf9a;p=git-scripts.git diff --git a/ls-stash b/ls-stash index 93af80d..1933508 100755 --- 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