Signed-off-by: Luiz Fernando N Capitulino <lcapitulino@xxxxxxxxxxxxxxx> --- 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 - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html