summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2017-12-25 17:44:03 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-12-28 21:50:05 (GMT)
commitabc035126a58829cb7265b3ab2f2ca30312aa3b7 (patch)
tree845f23e563831afdb597736962bca8639ed59c10 /commit.c
parent07f7d55a346f0eb73a358736ce065f8c08b46452 (diff)
downloadgit-abc035126a58829cb7265b3ab2f2ca30312aa3b7.zip
git-abc035126a58829cb7265b3ab2f2ca30312aa3b7.tar.gz
git-abc035126a58829cb7265b3ab2f2ca30312aa3b7.tar.bz2
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>
Diffstat (limited to 'commit.c')
-rw-r--r--commit.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/commit.c b/commit.c
index 8266751..9edc12f 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);
}