ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/tests
Martin von Zweigbergk 50ba571527 log: move commit ID off to the right
We have talked about showing the commit ID only for divergent changes
because it's generally easier to work with the change ID, and it's
less likely to result in a divergent change. However, it's useful to
have the commit ID available for pasting into e.g. a commit message or
the GitHub UI. To try to steer users towards using the change ID, this
commit moves the commit ID off to the right in the log output.

I put it just after the "divergent" field, because that makes it close
to how I imagine it would look if we decided to hide the commit ID
except for divergent changes. I was thinking that could be rendered as
"divergent (abc123)". So if we add config to hide the commit ID, then
it would be rendered almost the same for divergent commits (just with
the added parentheses). It would also make sense to replace the
"divergent" field by a question mark on the change ID, since change
IDs basically behave like branches. If we do that, then the placement
of the commit ID I picked in this commit does not make sense.
2022-11-14 07:49:52 -08:00
..
common tests: move testutils module into separate crate 2022-11-08 07:29:35 -08:00
test_alias.rs log: move commit ID off to the right 2022-11-14 07:49:52 -08:00
test_branch_command.rs
test_checkout.rs cli: drop support for ui.enable-open-commits config 2022-11-05 06:14:37 -07:00
test_commit_command.rs cli: add commit as its own command (not an alias for close) 2022-11-05 06:14:37 -07:00
test_concurrent_operations.rs cli: when merging concurrent operations, snapshot afterwards 2022-10-12 06:22:38 -07:00
test_describe_command.rs
test_diff_command.rs
test_edit_command.rs tests: avoid about-to-be-deleted open template keyword 2022-11-05 06:14:37 -07:00
test_git_clone.rs Fixes suggested by new version of Clippy 2022-11-03 21:38:16 -07:00
test_git_colocated.rs git: update our record of Git branches on export 2022-11-13 15:06:10 -08:00
test_git_push.rs test_git_push: create Git repo using jj commands 2022-11-13 15:29:48 -08:00
test_git_remotes.rs cli: add git remote rename subcommand 2022-10-20 11:04:16 -07:00
test_gitignores.rs
test_global_opts.rs Add --config-toml command-line argument for additional TOML config 2022-11-05 21:21:33 -07:00
test_init_command.rs log: move commit ID off to the right 2022-11-14 07:49:52 -08:00
test_interdiff_command.rs
test_log_command.rs revset: implement file(pattern[, candidates]) predicate 2022-10-24 01:48:00 +09:00
test_move_command.rs
test_new_command.rs
test_obslog_command.rs log: move commit ID off to the right 2022-11-14 07:49:52 -08:00
test_operations.rs Include @ in the default revset 2022-10-19 13:30:16 -07:00
test_print_command.rs
test_rebase_command.rs test_rebase_command: avoid unnecessary close command 2022-11-05 06:14:37 -07:00
test_restore_command.rs
test_revset_output.rs revset: report bad number of arguments with span 2022-11-03 09:41:04 +09:00
test_sparse_command.rs
test_split_command.rs
test_squash_command.rs
test_templater.rs git: on initial export, export all branches 2022-11-13 15:06:10 -08:00
test_touchup_command.rs Fixes suggested by new version of Clippy 2022-11-03 21:38:16 -07:00
test_undo.rs
test_unsquash_command.rs
test_untrack_command.rs cli: separate out hint in untrack message 2022-11-12 17:58:22 -08:00
test_workspaces.rs tests: avoid about-to-be-deleted close command 2022-11-05 06:14:37 -07:00