git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] bisect: use "clear_commit_marks" after checking ancestors
@ 2009-05-28 21:24 Christian Couder
  0 siblings, 0 replies; only message in thread
From: Christian Couder @ 2009-05-28 21:24 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

instead of "unparse_commit", as it is enough to just clear flags.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
---
 bisect.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

	As the patch series where "unparse_commit" is added and
	used is already in "next". Here is a patch to use
	"clear_commit_marks" instead. The patch that adds
	"unparse_commit" can be reverted from "next" after this
	one.

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;
-- 
1.6.3.GIT

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-05-28 21:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-28 21:24 [PATCH] bisect: use "clear_commit_marks" after checking ancestors Christian Couder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).