X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=status-dirty-carefully;h=8e6f9ef99523916d5c6ffc7d33922bc625e7ad9a;hb=396a2fe8b0c7352fac32db0f7c0e65b92930904b;hp=bdbf901b755934b23045f5727d78a76dd8771383;hpb=f0db190b61cc4659a0819b634adaa0992b109461;p=git-scripts.git diff --git a/status-dirty-carefully b/status-dirty-carefully index bdbf901..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 --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