aboutsummaryrefslogtreecommitdiff
path: root/builtin-rev-list.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-03-23 17:38:22 -0700
committerJunio C Hamano <junkio@cox.net>2007-03-23 23:38:04 -0700
commit1c2c6112a4bf655faa768ddfca067945edf2809e (patch)
tree985973c2d5ac3611db6e25f702eecacf7cb41939 /builtin-rev-list.c
parentbab36bf57d7a565e0077e1f5d2e3a10afa319ecc (diff)
parentb08bbae7e1676e5a47fa9054e268ff14ee819a3a (diff)
downloadgit-1c2c6112a4bf655faa768ddfca067945edf2809e.tar.gz
git-1c2c6112a4bf655faa768ddfca067945edf2809e.tar.xz
Merge branch 'master' into jc/bisect
This is to merge in the fix for path-limited bisection from the 'master' branch.
Diffstat (limited to 'builtin-rev-list.c')
-rw-r--r--builtin-rev-list.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin-rev-list.c b/builtin-rev-list.c
index b395ffeb0..09e3a60bf 100644
--- a/builtin-rev-list.c
+++ b/builtin-rev-list.c
@@ -182,9 +182,9 @@ static struct commit_list *find_bisection(struct commit_list *list,
nr++;
p = p->next;
}
- *all = nr;
- closest = 0;
+ closest = -1;
best = list;
+ *all = nr;
for (p = list; p; p = p->next) {
int distance, reach;