Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
commit.c: use clear_commit_marks_many() in in_merge_bases_many()
author
Junio C Hamano
<gitster@pobox.com>
Tue, 5 Mar 2013 19:56:03 +0000
(11:56 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 5 Mar 2013 21:39:46 +0000
(13:39 -0800)
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
4c4b27e
)
diff --git
a/commit.c
b/commit.c
index d12e7995cce18f4002bb4633467695a87850ba67..b4512ab0b2ebd008aa90e0dfe00fbc1aa42a5c64 100644
(file)
--- 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);
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;
}
free_commit_list(bases);
return ret;
}