diff options
| author | Russell Belfer <rb@github.com> | 2013-06-25 16:36:50 -0700 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2013-06-25 16:36:50 -0700 |
| commit | b0401c686788300bd4fb16cf395533458611eda1 (patch) | |
| tree | ba25e467609c6e7efbce77aff53cb5797d1e01e9 /src/commit_list.c | |
| parent | d0c36a0baf42d751c23e13df08c7ec9f800dd40f (diff) | |
| parent | 24ba6d3f8cec2524a3e18157dd9149bbfb654650 (diff) | |
| download | libgit2-b0401c686788300bd4fb16cf395533458611eda1.tar.gz | |
Merge pull request #1681 from arthurschreiber/patch-1
Prefer younger merge bases over older ones.
Diffstat (limited to 'src/commit_list.c')
| -rw-r--r-- | src/commit_list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commit_list.c b/src/commit_list.c index bd5b5201a..64416e54d 100644 --- a/src/commit_list.c +++ b/src/commit_list.c @@ -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; |
