From: Oleg Broytman Date: Sun, 10 Apr 2016 03:58:41 +0000 (+0300) Subject: Fix: delete old files X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=8ed233c6fbdb88363fc54279c0a044413b137c54;p=git-scripts.git Fix: delete old files --- diff --git a/ls-dirty-carefully b/ls-dirty-carefully index f723fd0..df5e362 100755 --- a/ls-dirty-carefully +++ b/ls-dirty-carefully @@ -6,7 +6,7 @@ cd "$HOME"/tmp && rm -rf ls-dirty-carefully.tmp && LSTMP="$HOME"/tmp/ls-dirty-carefully.tmp \ "$PROG_DIR"/do-all \ 'test "$g" = "$d/.git" || continue;' \ - 'rsync -aW --protocol=28 "$d" "$LSTMP" && cd "$LSTMP/$b" &&' \ + 'rsync -aW --del --protocol=28 "$d" "$LSTMP" && cd "$LSTMP/$b" &&' \ 'test -n "`git status -s`" && echo "$d"' && cd "$HOME"/tmp && exec rm -rf ls-dirty-carefully.tmp diff --git a/status-dirty-carefully b/status-dirty-carefully index bdbf901..065dac0 100755 --- a/status-dirty-carefully +++ b/status-dirty-carefully @@ -6,7 +6,7 @@ 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" &&' \ + 'rsync -aW --del --protocol=28 "$d" "$LSTMP" && cd "$LSTMP/$b" &&' \ 'test -n "`git status -s`" && echo "----- $d -----" &&' \ 'git status --branch' &&