From 2c0b4381adcd73c11f25c30e8e4a267bd1fd54a8 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 3 Aug 2016 15:14:50 +0300 Subject: [PATCH] Use new ls-dirty This makes status-dirty-carefully much faster. --- status-dirty-carefully | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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 -- 2.39.2