From: Oleg Broytman Date: Wed, 3 Aug 2016 12:12:36 +0000 (+0300) Subject: Rename ls-dirty-carefully to ls-status-carefully X-Git-Url: https://git.phdru.name/?p=git-scripts.git;a=commitdiff_plain;h=41ea14fad3d8501191886b656c0f7bca6680a406 Rename ls-dirty-carefully to ls-status-carefully Change variable $PROG_DIR => $prog_dir. Use long option. --- 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