ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/cli
Scott Taylor 91504cae02 obslog: reverse order of predecessors in topo traversal
Currently, when there is a commit with two predecessors, the graph
splits into two branches, and all of the predecessors on the first
branch are printed before all of the predecessors on the second branch.
This causes the graph to grow wider with each squashed commit, since the
second branch must always get indented one level farther each time a
commit is squashed. I have some commits where the graph is indented more
than 10 levels due to squashing more than 10 times, making it very
difficult to read.

Reversing the order and printing the second branch before the first
branch prevents this unnecessary indentation and makes the graph easier
to read. This does not change the order of the edges in the graph (i.e.
the first predecessor is still the first edge and the second predecessor
is still the second edge in the graph).
2024-07-15 20:10:31 -05:00
..
examples copy-tracking: stub get_copy_records 2024-07-03 20:26:30 -04:00
src obslog: reverse order of predecessors in topo traversal 2024-07-15 20:10:31 -05:00
testing cli: skip formatting instructions if not required 2024-07-09 20:24:14 -05:00
tests obslog: reverse order of predecessors in topo traversal 2024-07-15 20:10:31 -05:00
build.rs build: update rerun-if conditions to watch .git/HEAD in colocated repo 2023-08-06 12:16:11 +09:00
Cargo.toml windows: avoid UNC paths in run_ui_editor 2024-07-04 11:30:20 +10:00
LICENSE cargo: add LICENSE file to each crate we publish 2023-09-22 21:48:28 -07:00