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>
This commit is contained in:
Vicent Marti 2010-05-26 01:42:18 +02:00 committed by Andreas Ericsson
parent 1f798df229
commit 1d1be8ee22

View File

@ -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;