mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-19 04:38:00 +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;
|
git_commit_list *p;
|
||||||
|
|
||||||
while ((p = *pp) != NULL) {
|
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;
|
break;
|
||||||
|
|
||||||
pp = &p->next;
|
pp = &p->next;
|
||||||
|
Loading…
Reference in New Issue
Block a user