Skip to content

Commit abc0351

Browse files
rscharfegitster
authored andcommitted
commit: use clear_commit_marks_many() in remove_redundant()
Signed-off-by: Rene Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 07f7d55 commit abc0351

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

commit.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -929,8 +929,7 @@ static int remove_redundant(struct commit **array, int cnt)
929929
if (work[j]->object.flags & PARENT1)
930930
redundant[filled_index[j]] = 1;
931931
clear_commit_marks(array[i], all_flags);
932-
for (j = 0; j < filled; j++)
933-
clear_commit_marks(work[j], all_flags);
932+
clear_commit_marks_many(filled, work, all_flags);
934933
free_commit_list(common);
935934
}
936935

0 commit comments

Comments
 (0)