diff options
author | Vicent Marti <tanoku@gmail.com> | 2010-05-26 01:42:18 +0200 |
---|---|---|
committer | Andreas Ericsson <ae@op5.se> | 2010-06-02 10:32:07 +0200 |
commit | 1d1be8ee22a69ad37b6cab510bf5f480dc6df779 (patch) | |
tree | 6faad60901e36538634f0d8b8ff3f21f83503c71 /src/commit.c | |
parent | 1f798df229a70aaa4ee221ecc0e24025ad92ed9a (diff) | |
download | libgit2-1d1be8ee22a69ad37b6cab510bf5f480dc6df779.tar.gz |
Fixed topological commit sorting (no longerd reversed) and commit time
sorting ('prev' pointers in the linked list are no longer lost).
Signed-off-by: Vicent Marti <tanoku@gmail.com>
Signed-off-by: Andreas Ericsson <ae@op5.se>
Diffstat (limited to 'src/commit.c')
-rw-r--r-- | src/commit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commit.c b/src/commit.c index 02e741c6f..a39920830 100644 --- a/src/commit.c +++ b/src/commit.c @@ -374,6 +374,7 @@ void git_commit_list_timesort(git_commit_list *list) else list->head = e; + e->prev = list->tail; list->tail = e; } @@ -413,7 +414,7 @@ void git_commit_list_toposort(git_commit_list *list) } } - git_commit_list_push_front(&topo, commit); + git_commit_list_push_back(&topo, commit); } list->head = topo.head; |