mirror of
https://github.com/git/git.git
synced 2026-03-19 05:00:08 +01:00
Merge branch 'by/line-log' into next
* by/line-log: log -L: do not free parents lists we might need again
This commit is contained in:
6
line.c
6
line.c
@@ -961,8 +961,10 @@ static int assign_range_to_parent(struct rev_info *rev, struct commit *c,
|
||||
* If there is no new ranges assigned to the parent,
|
||||
* we should mark it as a 'root' commit.
|
||||
*/
|
||||
free(c->parents);
|
||||
c->parents = NULL;
|
||||
if (c->parents && !c->parents->next) {
|
||||
free(c->parents);
|
||||
c->parents = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
/* and the ranges of current commit c is updated */
|
||||
|
||||
Reference in New Issue
Block a user