From 3f470f1afb29a7c635f2dc05c20bf2eb3e6e5c94 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 30 May 2016 07:17:57 +0300 Subject: [PATCH] Add a script to list all branches in all repos --- ls-branches | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 ls-branches 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' -- 2.39.5