X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=ls-dirty;h=77cad68b9f80f0917d24b02bfed54dd3d0952285;hb=bde260ddb033606e9c70830cca48c94962c08021;hp=e5d64da6e7d318fcf2f40f94f9b7a34bd44b7fb4;hpb=128c605a1b8968935a4a266ff91359a4954e54fb;p=git-scripts.git diff --git a/ls-dirty b/ls-dirty index e5d64da..77cad68 100755 --- a/ls-dirty +++ b/ls-dirty @@ -1,5 +1,10 @@ #! /bin/sh -exec "`dirname \"$0\"`"/do-all \ - 'test "$g" = "$d/.git" || continue; cd "$d" &&' \ - 'test -n "`git status -s`" && echo "$d"' +d="`git rev-parse --show-toplevel`" && + +if [ -n "$d" ]; then + if [ -n "`git ls-files --deleted --modified --others --unmerged --killed --exclude-standard --directory --no-empty-directory`" ] + then + echo "$d" + fi +fi