Closed mlange-42 closed 3 years ago
Problem:
rebase
How git handles it:
git
git log
git log --graph
For some considerations on that, and an algorithm for "remporal tolopogical sort", see https://pvigier.github.io/2019/05/06/commit-graph-drawing-algorithms.html
Later discovered that crate git2 allows to combine sort orders:
git2
walk.set_sorting(git2::Sort::TOPOLOGICAL | git2::Sort::TIME)?;
which may already be the solution, but needs to be tested
Solved through git2::Sort::TOPOLOGICAL | git2::Sort::TIME
git2::Sort::TOPOLOGICAL | git2::Sort::TIME
Problem:
rebase
How
git
handles it:git log
shows chronological order, whilegit log --graph
shows topological orderFor some considerations on that, and an algorithm for "remporal tolopogical sort", see https://pvigier.github.io/2019/05/06/commit-graph-drawing-algorithms.html
Later discovered that crate
git2
allows to combine sort orders:which may already be the solution, but needs to be tested