]> git.phdru.name Git - git-scripts.git/blob - status-dirty-carefully
Fix: delete old files
[git-scripts.git] / status-dirty-carefully
1 #! /bin/sh
2
3 cd "`dirname \"$0\"`" && PROG_DIR="`pwd`" &&
4 cd "$HOME"/tmp && rm -rf status-dirty-carefully.tmp &&
5
6 LSTMP="$HOME"/tmp/status-dirty-carefully.tmp \
7 "$PROG_DIR"/do-all \
8    'test "$g" = "$d/.git" || continue;' \
9    'rsync -aW --del --protocol=28 "$d" "$LSTMP" && cd "$LSTMP/$b" &&' \
10    'test -n "`git status -s`" && echo "----- $d -----" &&' \
11    'git status --branch' &&
12
13 cd "$HOME"/tmp && exec rm -rf status-dirty-carefully.tmp