]> git.phdru.name Git - git-scripts.git/blob - show-remotes-not-synced
Feat(submodules/remove): Add option `-c`
[git-scripts.git] / show-remotes-not-synced
1 #! /bin/sh
2
3 if [ "$1" = "-v" ]; then
4    verbose="--verbose"
5 fi
6 export verbose
7
8 exec "`dirname \"$0\"`"/do-all \
9    'test "$g" = "$d/.git" || continue; cd "$d" &&' \
10    'not_up="`git remote | xargs -n1 git remote show | ' \
11    'grep -F \" pushes to \" | grep -Fv \"(up to date)\"`" &&' \
12    'test -n "$not_up" && echo "$d"'