From: René Scharfe Date: Mon, 25 Dec 2017 17:44:03 GMT Subject: [PATCH v2 2/9] commit: use clear_commit_marks_many() in remove_redundant() Message-ID: <539d37d6-0d22-dba4-9b91-d5b77d43bcd2@web.de> In-Reply-To: Signed-off-by: Rene Scharfe --- commit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/commit.c b/commit.c index 82667514bd..9edc12f338 100644 --- a/commit.c +++ b/commit.c @@ -929,8 +929,7 @@ static int remove_redundant(struct commit **array, int cnt) if (work[j]->object.flags & PARENT1) redundant[filled_index[j]] = 1; clear_commit_marks(array[i], all_flags); - for (j = 0; j < filled; j++) - clear_commit_marks(work[j], all_flags); + clear_commit_marks_many(filled, work, all_flags); free_commit_list(common); } -- 2.15.1