chiark
/
gitweb
/
~ian
/
topgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[TOPGIT] limit rev-list in branch_contains to a single rev
[topgit.git]
/
tg.sh
diff --git
a/tg.sh
b/tg.sh
index 8c23d26b9a62ddcc1869bb70299862c32edd4403..ccb40cdea444c7d77d58c86fbeb275335e0da372 100644
(file)
--- a/
tg.sh
+++ b/
tg.sh
@@
-77,7
+77,7
@@
measure_branch()
# Whether B1 is a superset of B2.
branch_contains()
{
- [ -z "$(git rev-list ^"$1" "$2" --)" ]
+ [ -z "$(git rev-list
--max-count=1
^"$1" "$2" --)" ]
}
# ref_exists REF