ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/cli/src
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
..
commands obslog: reverse order of predecessors in topo traversal 2024-07-15 20:10:31 -05:00
config cli: include untracked remote branches in default immutable_heads() 2024-07-15 23:41:07 +09:00
merge_tools diff: accept diff inputs by generic iterator 2024-07-14 23:26:29 +09:00
cleanup_guard.rs
cli_util.rs cli: skip formatting instructions if not required 2024-07-09 20:24:14 -05:00
command_error.rs workspace add: add filename context to FS error 2024-07-01 16:05:29 -07:00
commit_templater.rs templater: use .map_or() to silence clippy without sacrificing readability 2024-06-30 10:25:18 +09:00
config-schema.json cli: include untracked remote branches in default immutable_heads() 2024-07-15 23:41:07 +09:00
config.rs Show paths of config files when configurations contain errors 2024-06-10 10:14:36 +00:00
description_util.rs diff_util: remove WorkspaceCommandHelper dependency from show functions 2024-05-14 09:36:13 +09:00
diff_util.rs diff: do not emit unified diff for binary files 2024-07-15 14:45:59 +09:00
formatter.rs formatter: minor cleanup in --color=debug handling 2024-07-13 11:08:01 +09:00
generic_templater.rs templater: implement expect_*_arguments() as methods 2024-05-22 10:18:05 +09:00
git_util.rs ui: remove Option<_> wrapping from ui.hint_() helpers 2024-06-18 09:37:23 +09:00
graphlog.rs
lib.rs cli: extract primitives for user revset parsing and evaluation 2024-03-14 22:59:43 +09:00
main.rs
operation_templater.rs templater: implement expect_*_arguments() as methods 2024-05-22 10:18:05 +09:00
progress.rs cli: clear line after writing 2024-05-30 12:27:11 -05:00
revset_util.rs cli: Ignore immutable() in jj git push conflict/desc/user checks 2024-06-24 10:45:29 +10:00
template.pest fileset, revset, templater: add support for single-quoted raw string literals 2024-04-25 11:14:33 +09:00
template_builder.rs dsl_util: add keyword arguments and parsing helper to FunctionCallNode 2024-05-29 22:36:15 +09:00
template_parser.rs revset, templater: implement arity-based alias overloading 2024-06-14 23:11:29 +09:00
templater.rs templater: add SizeHint type to represent revset.count_estimate() value 2024-05-09 08:51:34 +09:00
text_util.rs cli: add ui.color = "debug" 2024-05-11 10:16:09 +02:00
time_util.rs
ui.rs ui: remove Option<_> wrapping from ui.hint_() helpers 2024-06-18 09:37:23 +09:00