From 1d1be8ee22a69ad37b6cab510bf5f480dc6df779 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Wed, 26 May 2010 01:42:18 +0200 Subject: [PATCH] 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 Signed-off-by: Andreas Ericsson --- src/commit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commit.c b/src/commit.c index 02e741c..a399208 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; -- 2.11.4.GIT