Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3736b64

Browse files
Prefer younger merge bases over older ones.
git-core prefers younger merge bases over older ones in case that multiple valid merge bases exists.
1 parent eddc1f1 commit 3736b64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commit_list.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ git_commit_list *git_commit_list_insert_by_date(git_commit_list_node *item, git_
3636
git_commit_list *p;
3737

3838
while ((p = *pp) != NULL) {
39-
if (git_commit_list_time_cmp(p->item, item) < 0)
39+
if (git_commit_list_time_cmp(p->item, item) > 0)
4040
break;
4141

4242
pp = &p->next;

0 commit comments

Comments
 (0)