X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=ls-status-carefully;h=eca5999e90a8d47ddec783756ea8810444803c16;hb=c933381bc6c49d02e45094006e625776ecc5cb4d;hp=df5e362fba25ca7d4c48db55aa70b66e31141fae;hpb=309577a0b53a652d6e02486fea046fb837afb2f2;p=git-scripts.git diff --git a/ls-status-carefully b/ls-status-carefully index df5e362..eca5999 100755 --- a/ls-status-carefully +++ b/ls-status-carefully @@ -1,12 +1,12 @@ #! /bin/sh -cd "`dirname \"$0\"`" && PROG_DIR="`pwd`" && -cd "$HOME"/tmp && rm -rf ls-dirty-carefully.tmp && +cd "`dirname \"$0\"`" && prog_dir="`pwd`" && +cd "$HOME"/tmp && rm -rf ls-status-carefully.tmp && -LSTMP="$HOME"/tmp/ls-dirty-carefully.tmp \ -"$PROG_DIR"/do-all \ +LSTMP="$HOME"/tmp/ls-status-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"' && + 'test -n "`git status --short`" && echo "$d"' && -cd "$HOME"/tmp && exec rm -rf ls-dirty-carefully.tmp +cd "$HOME"/tmp && exec rm -rf ls-status-carefully.tmp