From: Oleg Broytman Date: Wed, 3 Aug 2016 12:14:50 +0000 (+0300) Subject: Use new ls-dirty X-Git-Url: https://git.phdru.name/?p=git-scripts.git;a=commitdiff_plain;h=2c0b4381adcd73c11f25c30e8e4a267bd1fd54a8 Use new ls-dirty This makes status-dirty-carefully much faster. --- diff --git a/status-dirty-carefully b/status-dirty-carefully index 065dac0..8e6f9ef 100755 --- a/status-dirty-carefully +++ b/status-dirty-carefully @@ -1,13 +1,13 @@ #! /bin/sh -cd "`dirname \"$0\"`" && PROG_DIR="`pwd`" && +cd "`dirname \"$0\"`" && prog_dir="`pwd`" && cd "$HOME"/tmp && rm -rf status-dirty-carefully.tmp && -LSTMP="$HOME"/tmp/status-dirty-carefully.tmp \ -"$PROG_DIR"/do-all \ - 'test "$g" = "$d/.git" || continue;' \ - 'rsync -aW --del --protocol=28 "$d" "$LSTMP" && cd "$LSTMP/$b" &&' \ - 'test -n "`git status -s`" && echo "----- $d -----" &&' \ - 'git status --branch' && +LSTMP="$HOME"/tmp/status-dirty-carefully.tmp && +for d in `"$prog_dir"/ls-dirty` +do + rsync -aW --del --protocol=28 "$d" "$LSTMP" && cd "$LSTMP/`basename $d`" && + echo "----- $d -----" && git status --branch +done && cd "$HOME"/tmp && exec rm -rf status-dirty-carefully.tmp