mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-03 17:24:55 +00:00
Prefer younger merge bases over older ones.
git-core prefers younger merge bases over older ones in case that multiple valid merge bases exists.
This commit is contained in:
parent
eddc1f1ed7
commit
3736b64f05
@ -36,7 +36,7 @@ git_commit_list *git_commit_list_insert_by_date(git_commit_list_node *item, git_
|
||||
git_commit_list *p;
|
||||
|
||||
while ((p = *pp) != NULL) {
|
||||
if (git_commit_list_time_cmp(p->item, item) < 0)
|
||||
if (git_commit_list_time_cmp(p->item, item) > 0)
|
||||
break;
|
||||
|
||||
pp = &p->next;
|
||||
|
Loading…
Reference in New Issue
Block a user