mirror of
https://git.proxmox.com/git/libgit2
synced 2025-11-02 19:37:59 +00:00
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:
parent
1f798df229
commit
1d1be8ee22
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user