X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=show-remotes-not-synced;fp=show-remotes-not-synced;h=be4a40465adde9dd60bb99340c0a8ecef34c026c;hb=c7ed23ef5cec0b238d7180a49f5369cfeabf061a;hp=0000000000000000000000000000000000000000;hpb=d38be90c1d67717c7113486414e65d8b2c8c4151;p=git-scripts.git diff --git a/show-remotes-not-synced b/show-remotes-not-synced new file mode 100755 index 0000000..be4a404 --- /dev/null +++ b/show-remotes-not-synced @@ -0,0 +1,12 @@ +#! /bin/sh + +if [ "$1" = "-v" ]; then + verbose="--verbose" +fi +export verbose + +exec "`dirname \"$0\"`"/do-all \ + 'test "$g" = "$d/.git" || continue; cd "$d" &&' \ + 'not_up="`git remote | xargs -n1 git remote show | ' \ + 'grep -F \" pushes to \" | grep -Fv \"(up to date)\"`" &&' \ + 'test -n "$not_up" && echo "----- $d -----"'