]> git.phdru.name Git - git-scripts.git/blobdiff - ls-remotes
Add scripts to list/show remotes
[git-scripts.git] / ls-remotes
diff --git a/ls-remotes b/ls-remotes
new file mode 100755 (executable)
index 0000000..5371f6f
--- /dev/null
@@ -0,0 +1,10 @@
+#! /bin/sh
+
+if [ "$1" = "-v" ]; then
+   verbose="--verbose"
+fi
+export verbose
+
+exec "`dirname \"$0\"`"/do-all \
+   'test "$g" = "$d/.git" || continue; cd "$d" &&' \
+   'echo "----- $d -----"; git remote $verbose'