Commit 3736b64f by Arthur Schreiber

Prefer younger merge bases over older ones.

git-core prefers younger merge bases over older ones in case that multiple valid merge bases exists.
parent eddc1f1e
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment