summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-03-05 11:56:03 -0800
committerJunio C Hamano <gitster@pobox.com>2013-03-05 13:39:46 -0800
commit557899ff6b4093ebffba71e916f7241b36b59068 (patch)
treee830aefb47618e883e62e8d22d9c811a5a828a05 /commit.c
parent4c4b27e8cefdd88d76590c5fd786d1d43fb6f898 (diff)
downloadgit-557899ff6b4093ebffba71e916f7241b36b59068.tar.gz
commit.c: use clear_commit_marks_many() in in_merge_bases_many()
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 d12e7995cc..b4512ab0b2 100644
--- a/commit.c
+++ b/commit.c
@@ -876,8 +876,7 @@ int in_merge_bases_many(struct commit *commit, int nr_reference, struct commit *
if (commit->object.flags & PARENT2)
ret = 1;
clear_commit_marks(commit, all_flags);
- for (i = 0; i < nr_reference; i++)
- clear_commit_marks(reference[i], all_flags);
+ clear_commit_marks_many(nr_reference, reference, all_flags);
free_commit_list(bases);
return ret;
}