rev-list --bisect: Fix "halfway" optimization.
authorJunio C Hamano <junkio@cox.net>
Fri, 23 Mar 2007 07:40:54 +0000 (00:40 -0700)
committerJunio C Hamano <junkio@cox.net>
Sat, 24 Mar 2007 06:38:32 +0000 (23:38 -0700)
commit2a4646904a3766abeca7741f15a481d79e97e9e7
tree5fa67983978a16bc1e29f9fbd3ba4a7cdb4418c1
parent1c2c6112a4bf655faa768ddfca067945edf2809e
rev-list --bisect: Fix "halfway" optimization.

If you have 5 commits in the set, commits that reach 2 or 3
commits are at halfway.  If you have 6 commits, only commits
that reach exactly 3 commits are at halfway.  The earlier one is
completely botched the math.

Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-rev-list.c