Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-03-24 03:38:22 +0300
committerJunio C Hamano <junkio@cox.net>2007-03-24 09:38:04 +0300
commit1c2c6112a4bf655faa768ddfca067945edf2809e (patch)
tree985973c2d5ac3611db6e25f702eecacf7cb41939 /builtin-rev-list.c
parentbab36bf57d7a565e0077e1f5d2e3a10afa319ecc (diff)
parentb08bbae7e1676e5a47fa9054e268ff14ee819a3a (diff)
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 b395ffeb03..09e3a60bf6 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;