diff options
author | René Scharfe <l.s.r@web.de> | 2017-12-25 18:44:12 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-12-28 13:50:05 -0800 |
commit | 5dee6d6f28370b613ccf945b1ba8cecb0b44c172 (patch) | |
tree | 9e34d2ea52ae749330517d9d202940cfe8f91d8f | |
parent | commit: use clear_commit_marks_many() in remove_redundant() (diff) | |
download | tgif-5dee6d6f28370b613ccf945b1ba8cecb0b44c172.tar.xz |
ref-filter: use clear_commit_marks_many() in do_merge_filter()
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | ref-filter.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ref-filter.c b/ref-filter.c index e728b15b3a..1d0d77c30d 100644 --- a/ref-filter.c +++ b/ref-filter.c @@ -1961,8 +1961,7 @@ static void do_merge_filter(struct ref_filter_cbdata *ref_cbdata) free_array_item(item); } - for (i = 0; i < old_nr; i++) - clear_commit_marks(to_clear[i], ALL_REV_FLAGS); + clear_commit_marks_many(old_nr, to_clear, ALL_REV_FLAGS); clear_commit_marks(filter->merge_commit, ALL_REV_FLAGS); free(to_clear); } |