From: Petr Baudis Date: Sat, 2 Aug 2008 23:50:23 +0000 (+0200) Subject: tg-summary.sh: Simplify (thanks to spearce) X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=topgit.git;a=commitdiff_plain;h=465528d881231eddeb3e5909b6ad18bf5a8f6f8d tg-summary.sh: Simplify (thanks to spearce) --- diff --git a/tg-summary.sh b/tg-summary.sh index c608a18..89b638b 100644 --- a/tg-summary.sh +++ b/tg-summary.sh @@ -14,11 +14,9 @@ fi ## List branches -git for-each-ref | cut -f 2 | +git for-each-ref refs/heads | cut -f 2 | while read ref; do name="${ref#refs/heads/}" - [ "$name" != "$ref" ] || - continue # eew, not a branch git rev-parse --verify "refs/top-bases/$name" >/dev/null 2>&1 || continue # not a TopGit branch