]> git.phdru.name Git - git-scripts.git/blob - ls-status-carefully
pull-usrlocalsrc: pull from source, push to origin
[git-scripts.git] / ls-status-carefully
1 #! /bin/sh
2
3 LSTMP="$HOME"/tmp/ls-status-carefully.tmp
4 export LSTMP
5 trap 'exec rm -rf "$LSTMP"' 0 HUP INT QUIT TERM
6
7 cd "`dirname \"$0\"`" && prog_dir="`pwd`" &&
8 rm -rf "$LSTMP" && mkdir "$LSTMP" &&
9
10 "$prog_dir"/do-all \
11    'test "$g" = "$d/.git" || continue;' \
12    'rsync -aW --del --protocol=28 "$d" "$LSTMP" && cd "$LSTMP/$b" &&' \
13    'test -n "`git status --short`" && echo "$d"'