X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=all-status-carefully;h=d0bafa5d467ded6adf0f081c2dd5d03a555a70ed;hb=d620650e20051859359c8bb1ec26c122261af652;hp=8a767d22ff31841fda7fabbf8225acf3df9796d1;hpb=3ae3b62b948c2d1b32742d3e6f1b103f65f258e0;p=git-scripts.git diff --git a/all-status-carefully b/all-status-carefully index 8a767d2..d0bafa5 100755 --- a/all-status-carefully +++ b/all-status-carefully @@ -8,6 +8,8 @@ cd "`dirname \"$0\"`" && prog_dir="`pwd`" && rm -rf "$STMP" && mkdir "$STMP" && "$prog_dir"/do-all \ + 'test "$g" = "$d/.git" || continue;' \ 'rsync -aW --del --protocol=28 "$d" "$STMP" && cd "$STMP/$b" &&' \ - 'test -n "`git status --short`" && echo "----- $d -----" &&' \ - 'git status --short --branch' + '( test -n "`git status --short`" ||' \ + 'git status --branch --short | grep -q "ahead\|behind" ) &&' \ + 'echo "----- $d -----" && git status --short --branch'