{"thread":{"id":"37079","subject":"[PATCH] line-log: use commit_list_append() instead of duplicating its code","startedAt":"2014-07-08T16:23:37Z","lastAt":"2014-07-08T16:23:37Z","messageCount":1,"participants":["René Scharfe"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"245538","messageId":"53BC1B09.1020801@web.de","threadId":"37079","inReplyTo":null,"subject":"[PATCH] line-log: use commit_list_append() instead of duplicating its code","fromName":"René Scharfe","fromEmail":"l.s.r@web.de","sentAt":"2014-07-08T16:23:37Z","receivedAt":"2014-07-08T16:23:37Z","isPatch":true,"sender":{"key":"l.s.r@web.de","avatar":"https://avatars.githubusercontent.com/u/26122331?v=4"},"body":"Signed-off-by: Rene Scharfe <l.s.r@web.de>\n---\n line-log.c | 4 +---\n 1 file changed, 1 insertion(+), 3 deletions(-)\n\ndiff --git a/line-log.c b/line-log.c\nindex 1500101..afcc98d 100644\n--- a/line-log.c\n+++ b/line-log.c\n@@ -1174,9 +1174,7 @@ static int process_ranges_merge_commit(struct rev_info *rev, struct commit *comm\n \t\t\t */\n \t\t\tadd_line_range(rev, parents[i], cand[i]);\n \t\t\tclear_commit_line_range(rev, commit);\n-\t\t\tcommit->parents = xmalloc(sizeof(struct commit_list));\n-\t\t\tcommit->parents->item = parents[i];\n-\t\t\tcommit->parents->next = NULL;\n+\t\t\tcommit_list_append(parents[i], &commit->parents);\n \t\t\tfree(parents);\n \t\t\tfree(cand);\n \t\t\tfree_diffqueues(nparents, diffqueues);\n-- \n2.0.0\n"}]}