mirror of
https://github.com/git/git.git
synced 2024-11-19 02:13:55 +01:00
line-log: use commit_list_append() instead of duplicating its code
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
4602f1a434
commit
72c779457c
@ -1174,9 +1174,7 @@ static int process_ranges_merge_commit(struct rev_info *rev, struct commit *comm
|
|||||||
*/
|
*/
|
||||||
add_line_range(rev, parents[i], cand[i]);
|
add_line_range(rev, parents[i], cand[i]);
|
||||||
clear_commit_line_range(rev, commit);
|
clear_commit_line_range(rev, commit);
|
||||||
commit->parents = xmalloc(sizeof(struct commit_list));
|
commit_list_append(parents[i], &commit->parents);
|
||||||
commit->parents->item = parents[i];
|
|
||||||
commit->parents->next = NULL;
|
|
||||||
free(parents);
|
free(parents);
|
||||||
free(cand);
|
free(cand);
|
||||||
free_diffqueues(nparents, diffqueues);
|
free_diffqueues(nparents, diffqueues);
|
||||||
|
Loading…
Reference in New Issue
Block a user