chiark
/
gitweb
/
~ian
/
topgit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1cccede
)
tg-summary.sh: Reuse already available base rev information
author
Petr Baudis
<pasky@suse.cz>
Sun, 3 Aug 2008 01:27:21 +0000
(
03:27
+0200)
committer
Petr Baudis
<pasky@suse.cz>
Sun, 3 Aug 2008 01:27:21 +0000
(
03:27
+0200)
tg-summary.sh
patch
|
blob
|
history
diff --git
a/tg-summary.sh
b/tg-summary.sh
index 89b638b9b817476d885fa9cc038f49e552d5a839..a1f8366ba26f75a35afd59a5a3fb4fa052eb5366 100644
(file)
--- a/
tg-summary.sh
+++ b/
tg-summary.sh
@@
-17,7
+17,7
@@
fi
git for-each-ref refs/heads | cut -f 2 |
while read ref; do
name="${ref#refs/heads/}"
git for-each-ref refs/heads | cut -f 2 |
while read ref; do
name="${ref#refs/heads/}"
-
git rev-parse --verify "refs/top-bases/$name" >/dev/null 2>&1
||
+
base_rev="$(git rev-parse --verify "refs/top-bases/$name" 2>/dev/null)"
||
continue # not a TopGit branch
deps_update=' '
continue # not a TopGit branch
deps_update=' '
@@
-25,7
+25,7
@@
git for-each-ref refs/heads | cut -f 2 |
base_update=' '
branch_contains "$name" "refs/top-bases/$name" || base_update='B'
base_update=' '
branch_contains "$name" "refs/top-bases/$name" || base_update='B'
- if [ "$(git rev-parse "$name")" != "$
(git rev-parse "refs/top-bases/$name")
" ]; then
+ if [ "$(git rev-parse "$name")" != "$
base_rev
" ]; then
subject="$(git cat-file blob "$name:.topmsg" | sed -n 's/^Subject: //p')"
else
# No commits yet
subject="$(git cat-file blob "$name:.topmsg" | sed -n 's/^Subject: //p')"
else
# No commits yet