From c933381bc6c49d02e45094006e625776ecc5cb4d Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 3 Aug 2016 15:14:10 +0300 Subject: [PATCH] Use git ls-files instead of status to avoid touching .git/ --- ls-dirty | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 ls-dirty 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"' -- 2.39.2