From: Oleg Broytman Date: Wed, 3 Aug 2016 12:14:10 +0000 (+0300) Subject: Use git ls-files instead of status to avoid touching .git/ X-Git-Url: https://git.phdru.name/?p=git-scripts.git;a=commitdiff_plain;h=c933381bc6c49d02e45094006e625776ecc5cb4d Use git ls-files instead of status to avoid touching .git/ --- diff --git a/ls-dirty b/ls-dirty new file mode 100755 index 0000000..d440c40 --- /dev/null +++ b/ls-dirty @@ -0,0 +1,5 @@ +#! /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"'