Show "(no_branch)" instead of "(no" in the output of the command branches (for exampl...
authorterencehill <piuntn@gmail.com>
Sat, 17 Jul 2010 15:26:28 +0000 (17:26 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 17 Jul 2010 15:26:28 +0000 (17:26 +0200)
all

diff --git a/all b/all
index 4fa99d1a077780f15354c85b592947fa599e3a28..4d82729188a989b3f83f0411e4655351e6332d4f 100755 (executable)
--- a/all
+++ b/all
@@ -319,7 +319,7 @@ case "$cmd" in
        branches)
                for d in $repos; do
                        cd "$d0/$d" # am in a pipe, shouldn't use enter
-                       git branch -a -v -v | cut -c 3- | sed "s,^,$d ,"
+                       git branch -a -v -v | cut -c 3- | sed "s/^(no branch)/(no_branch)/" | sed "s,^,$d ,"
                        cd "$d0"
                done | {
                        branches_list=