commit: use clear_commit_marks_many() in remove_redundant()
Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
René Scharfe committed
Dec 25, 2017 at 18:44 UTC
abc035126a58829cb7265b3ab2f2ca30312aa3b7
1 file changed
+1
-2
commit.c
+1
-2
@@ -929,8 +929,7 @@ static int remove_redundant(struct commit **array, int cnt)
929
if (work[j]->object.flags & PARENT1)
930
redundant[filled_index[j]] = 1;
931
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);
933
free_commit_list(common);
934
}
935