Commit 1d1be8ee by Vicent Marti Committed by Andreas Ericsson

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>
parent 1f798df2
...@@ -374,6 +374,7 @@ void git_commit_list_timesort(git_commit_list *list) ...@@ -374,6 +374,7 @@ void git_commit_list_timesort(git_commit_list *list)
else else
list->head = e; list->head = e;
e->prev = list->tail;
list->tail = e; list->tail = e;
} }
...@@ -413,7 +414,7 @@ void git_commit_list_toposort(git_commit_list *list) ...@@ -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; list->head = topo.head;
......
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