mirror of
https://github.com/git/git.git
synced 2024-11-28 04:23:30 +08:00
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>
This commit is contained in:
parent
07f7d55a34
commit
abc035126a
3
commit.c
3
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user