chiark
/
gitweb
/
~ian
/
topgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tg-summary.sh: Simplify (thanks to spearce)
[topgit.git]
/
tg-summary.sh
diff --git
a/tg-summary.sh
b/tg-summary.sh
index c608a18fae93d41352d65937cd5dc938846df9ae..89b638b9b817476d885fa9cc038f49e552d5a839 100644
(file)
--- a/
tg-summary.sh
+++ b/
tg-summary.sh
@@
-14,11
+14,9
@@
fi
## List branches
## 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/}"
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
git rev-parse --verify "refs/top-bases/$name" >/dev/null 2>&1 ||
continue # not a TopGit branch