3 STMP="$HOME"/tmp/all-status-carefully.tmp
5 trap 'exec rm -rf "$STMP"' 0 HUP INT QUIT TERM
7 cd "`dirname \"$0\"`" && prog_dir="`pwd`" &&
8 rm -rf "$STMP" && mkdir "$STMP" &&
11 'test "$g" = "$d/.git" || continue;' \
12 'rsync -aW --del --protocol=28 "$d" "$STMP" && cd "$STMP/$b" &&' \
13 '( test -n "`git status --short`" ||' \
14 'git status --branch --short | grep -q "ahead\|behind" ) &&' \
15 'echo "----- $d -----" && git status --short --branch'