Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
line-log: use commit_list_append() instead of duplicating its code
author
René Scharfe
<l.s.r@web.de>
Tue, 8 Jul 2014 16:23:37 +0000
(18:23 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 8 Jul 2014 18:01:53 +0000
(11:01 -0700)
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
line-log.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
4602f1a
)
diff --git
a/line-log.c
b/line-log.c
index 150010105806291180d9e6bdfcf1939fb242f2ac..afcc98db930a36358283ff199a428b6c5bbbaf8f 100644
(file)
--- a/
line-log.c
+++ b/
line-log.c
@@
-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]);
clear_commit_line_range(rev, commit);
- commit->parents = xmalloc(sizeof(struct commit_list));
- commit->parents->item = parents[i];
- commit->parents->next = NULL;
+ commit_list_append(parents[i], &commit->parents);
free(parents);
free(cand);
free_diffqueues(nparents, diffqueues);