From: Oleg Broytman Date: Mon, 30 May 2016 04:17:57 +0000 (+0300) Subject: Add a script to list all branches in all repos X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=3f470f1afb29a7c635f2dc05c20bf2eb3e6e5c94;p=git-scripts.git Add a script to list all branches in all repos --- diff --git a/ls-branches b/ls-branches new file mode 100755 index 0000000..1fa0ae5 --- /dev/null +++ b/ls-branches @@ -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 branch --all $verbose'