revision --simplify-merges: do not leave commits unprocessed
When we still do not know how parents of a commit simplify to, we should defer processing of the commit, not discard it. Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
faf0156b27
commit
53030f8d11
@ -1459,8 +1459,10 @@ static struct commit_list **simplify_one(struct rev_info *revs, struct commit *c
|
||||
cnt++;
|
||||
}
|
||||
}
|
||||
if (cnt)
|
||||
if (cnt) {
|
||||
tail = &commit_list_insert(commit, tail)->next;
|
||||
return tail;
|
||||
}
|
||||
|
||||
/*
|
||||
* Rewrite our list of parents.
|
||||
|
Loading…
Reference in New Issue
Block a user