]> git.phdru.name Git - git-scripts.git/commitdiff
List repositories not pushed to origin
authorOleg Broytman <phd@phdru.name>
Tue, 2 Aug 2016 19:55:01 +0000 (22:55 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 2 Aug 2016 19:55:01 +0000 (22:55 +0300)
ls-not-pushed [new file with mode: 0755]

diff --git a/ls-not-pushed b/ls-not-pushed
new file mode 100755 (executable)
index 0000000..da3b801
--- /dev/null
@@ -0,0 +1,5 @@
+#! /bin/sh
+
+exec "`dirname \"$0\"`"/do-all \
+   'test "$g" = "$d/.git" || continue; cd "$d" &&' \
+   'test -n "`git status -b | grep "ahead\|behind"`" && echo "$d"'