summaryrefslogtreecommitdiff
path: root/bisect.c
diff options
context:
space:
mode:
authorChristian Couder <chriscool@tuxfamily.org>2009-05-27 05:09:40 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-05-27 20:45:45 (GMT)
commit7a8e3895f68e9ae4e44e521c78fc98768c2a88ec (patch)
tree3adc4b131c6571c98e549afaa413dd210a706ebd /bisect.c
parent2d938fc7bcf2c8ce314c44955db5a4dd2e9b6adb (diff)
downloadgit-7a8e3895f68e9ae4e44e521c78fc98768c2a88ec.zip
git-7a8e3895f68e9ae4e44e521c78fc98768c2a88ec.tar.gz
git-7a8e3895f68e9ae4e44e521c78fc98768c2a88ec.tar.bz2
bisect: drop unparse_commit() and use clear_commit_marks()
The goal of this patch series is to check if good revisions are ancestor of the bad revision without forking a process to launch "git rev-list $good ^$bad". This new version of this patch series does not use an "unparse_commit" function anymore, we use "clear_commit_marks" instead. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'bisect.c')
-rw-r--r--bisect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bisect.c b/bisect.c
index c43c120..18f9fa4 100644
--- a/bisect.c
+++ b/bisect.c
@@ -771,7 +771,7 @@ static int check_ancestors(const char *prefix)
/* Clean up objects used, as they will be reused. */
for (i = 0; i < pending_copy.nr; i++) {
struct object *o = pending_copy.objects[i].item;
- unparse_commit((struct commit *)o);
+ clear_commit_marks((struct commit *)o, ALL_REV_FLAGS);
}
return res;