Signed-off-by: Stefan Beller <sbeller@xxxxxxxxxx> --- commit.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/commit.c b/commit.c index b01352f54a..3ed46e7372 100644 --- a/commit.c +++ b/commit.c @@ -913,7 +913,8 @@ struct commit_list *get_octopus_merge_bases(struct commit_list *in) return ret; } -static int remove_redundant(struct commit **array, int cnt) +#define remove_redundant(r, a, c) remove_redundant_##r(a, c) +static int remove_redundant_the_repository(struct commit **array, int cnt) { /* * Some commit in the array may be an ancestor of @@ -1003,7 +1004,7 @@ static struct commit_list *get_merge_bases_many_0_the_repository(struct commit * clear_commit_marks(one, all_flags); clear_commit_marks_many(n, twos, all_flags); - cnt = remove_redundant(rslt, cnt); + cnt = remove_redundant(the_repository, rslt, cnt); result = NULL; for (i = 0; i < cnt; i++) commit_list_insert_by_date(rslt[i], &result); @@ -1105,7 +1106,7 @@ struct commit_list *reduce_heads(struct commit_list *heads) p->item->object.flags &= ~STALE; } } - num_head = remove_redundant(array, num_head); + num_head = remove_redundant(the_repository, array, num_head); for (i = 0; i < num_head; i++) tail = &commit_list_insert(array[i], tail)->next; free(array); -- 2.15.1.433.g936d1b9894.dirty