]> git.phdru.name Git - git-scripts.git/blobdiff - ls-not-pushed
List repositories not pushed to origin
[git-scripts.git] / ls-not-pushed
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"'