X-Git-Url: https://git.phdru.name/?p=git-scripts.git;a=blobdiff_plain;f=ls-dirty;h=77cad68b9f80f0917d24b02bfed54dd3d0952285;hp=109296e3bba74901197151ebc53c4ee526c8f5d4;hb=bde260ddb033606e9c70830cca48c94962c08021;hpb=85bb1ca14fceb299bc688a926fcafe6011dcaf9a diff --git a/ls-dirty b/ls-dirty index 109296e..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 --directory --no-empty-directory`" && 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