Skip to content

Commit e366d0c

Browse files
committed
Merge branch 'ds/reachable-final-cleanup'
Code already in 'master' is further cleaned-up by this patch. * ds/reachable-final-cleanup: commit-reach: cleanups in can_all_from_reach...
2 parents 20e0ef6 + 8580644 commit e366d0c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

commit-reach.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,8 @@ int can_all_from_reach_with_flag(struct object_array *from,
561561
from_one = deref_tag(the_repository, from_one,
562562
"a from object", 0);
563563
if (!from_one || from_one->type != OBJ_COMMIT) {
564-
/* no way to tell if this is reachable by
564+
/*
565+
* no way to tell if this is reachable by
565566
* looking at the ancestry chain alone, so
566567
* leave a note to ourselves not to worry about
567568
* this object anymore.
@@ -625,10 +626,7 @@ int can_all_from_reach_with_flag(struct object_array *from,
625626
}
626627

627628
cleanup:
628-
for (i = 0; i < nr_commits; i++) {
629-
clear_commit_marks(list[i], RESULT);
630-
clear_commit_marks(list[i], assign_flag);
631-
}
629+
clear_commit_marks_many(nr_commits, list, RESULT | assign_flag);
632630
free(list);
633631

634632
for (i = 0; i < from->nr; i++)

0 commit comments

Comments
 (0)