From: Luiz Fernando N Capitulino Date: Thu, 26 Apr 2007 19:46:38 GMT Subject: [PATCH 3/5] reachable.c: Use for_each_revision() helper Message-ID: <11776168002081-git-send-email-lcapitulino@mandriva.com.br> In-Reply-To: <11776168001253-git-send-email-lcapitulino@mandriva.com.br> Signed-off-by: Luiz Fernando N Capitulino --- reachable.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/reachable.c b/reachable.c index ff3dd34..b69edd8 100644 --- a/reachable.c +++ b/reachable.c @@ -79,7 +79,7 @@ static void walk_commit_list(struct rev_info *revs) struct object_array objects = { 0, 0, NULL }; /* Walk all commits, process their trees */ - while ((commit = get_revision(revs)) != NULL) + for_each_revision(commit, revs) process_tree(commit->tree, &objects, NULL, ""); /* Then walk all the pending objects, recursively processing them too */ @@ -195,6 +195,5 @@ void mark_reachable_objects(struct rev_info *revs, int mark_reflog) * Set up the revision walk - this will move all commits * from the pending list to the commit walking list. */ - prepare_revision_walk(revs); walk_commit_list(revs); } -- 1.5.1.1.320.g1cf2