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:
b9f820b
)
measure_branch(): Use _bname instead of _name local variable
author
Petr Baudis
<pasky@suse.cz>
Sun, 10 Aug 2008 19:59:05 +0000
(21:59 +0200)
committer
Petr Baudis
<pasky@suse.cz>
Sun, 10 Aug 2008 19:59:05 +0000
(21:59 +0200)
tg.sh
patch
|
blob
|
history
diff --git
a/tg.sh
b/tg.sh
index d838bf6c11b50c0c06d48c209291cdcea2dbcc5d..146cddaa2bf3e1b22d0b5b2f089ce522b1a61a2e 100644
(file)
--- a/
tg.sh
+++ b/
tg.sh
@@
-60,11
+60,11
@@
setup_ours()
# measure_branch NAME [BASE]
measure_branch()
{
# measure_branch NAME [BASE]
measure_branch()
{
- _name="$1"; _base="$2"
- [ -n "$_base" ] || _base="refs/top-bases/$_name"
+ _
b
name="$1"; _base="$2"
+ [ -n "$_base" ] || _base="refs/top-bases/$_
b
name"
# The caller should've verified $name is valid
# The caller should've verified $name is valid
- _commits="$(git rev-list "$_name" ^"$_base" | wc -l)"
- _nmcommits="$(git rev-list --no-merges "$_name" ^"$_base" | wc -l)"
+ _commits="$(git rev-list "$_
b
name" ^"$_base" | wc -l)"
+ _nmcommits="$(git rev-list --no-merges "$_
b
name" ^"$_base" | wc -l)"
if [ $_commits -gt 1 ]; then
_suffix="commits"
else
if [ $_commits -gt 1 ]; then
_suffix="commits"
else