X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=ls-dirty;h=77cad68b9f80f0917d24b02bfed54dd3d0952285;hb=5ca7e428c53aca34584a0557ddabea07ddc31194;hp=d440c406c2a281a3b55190aa12fcb0cf039c85c7;hpb=c933381bc6c49d02e45094006e625776ecc5cb4d;p=git-scripts.git diff --git a/ls-dirty b/ls-dirty index d440c40..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 ls-files --deleted --modified --others --unmerged --killed --exclude-standard`" && 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