jj/cli/tests
Ilya Grigoriev 70b517ca64 conflicts.rs: label conflict number and sides next to conflict markers
For example, 

```
<<<<<<< Conflict 1 of 3
+++++++ Contents of side #1
left 3.1
left 3.2
left 3.3
%%%%%%% Changes from base to side #2
-line 3
+right 3.1
>>>>>>>
```

or

```
<<<<<<< Conflict 1 of 1
%%%%%%% Changes from base to side #1
-line 3
+right 3.1
+++++++ Contents of side #2
left 3.1
left 3.2
left 3.3
>>>>>>>
```

Currently, there is no way to disable these, this is TODO for a future
PR. Other TODOs for future PRs: make these labels configurable. After
that, we could support a `diff3/git`-like conflict format as well, in
principle.

Counting conflicts helps with knowing whether you fixed all the
conflicts while you are in the editor.

While labeling "side #1", etc, does not tell you the commit id or
description as requested in #1176, I still think it's an improvement.
Most importantly, I hope this will make `jj`'s conflict format less
scary-looking for new users.

I've used this for a bit, and I like it. Without the labels, I would see
that the two conflicts have a different order of conflict markers, but I
wouldn't be able to remember what that means. For longer diffs, it can
be tricky for me to quickly tell that it's a diff as opposed to one of
the sides. This also creates some hope of being able to navigate a
conflict with more than 2 sides.

Another not-so-secret goal for this is explained in
https://github.com/martinvonz/jj/pull/3109#issuecomment-2014140627. The
idea is a little weird, but I *think* it could be helpful, and I'd like
to experiment with it.
2024-05-05 18:42:14 -07:00
..
common
cli-reference@.md.snap cli --ignore-immutable help: remove double negative 2024-05-03 15:50:17 -07:00
runner.rs
test_abandon_command.rs
test_advance_branches.rs
test_alias.rs
test_branch_command.rs
test_builtin_aliases.rs
test_cat_command.rs conflicts.rs: label conflict number and sides next to conflict markers 2024-05-05 18:42:14 -07:00
test_checkout.rs
test_chmod_command.rs conflicts.rs: label conflict number and sides next to conflict markers 2024-05-05 18:42:14 -07:00
test_commit_command.rs
test_commit_template.rs cli: show hint for inner fileset/revset/template errors 2024-05-05 11:16:17 +09:00
test_concurrent_operations.rs
test_config_command.rs
test_debug_command.rs merged_tree: propagate errors from TreeEntriesIterator 2024-05-01 06:10:08 -07:00
test_describe_command.rs
test_diff_command.rs
test_diffedit_command.rs conflicts.rs: label conflict number and sides next to conflict markers 2024-05-05 18:42:14 -07:00
test_duplicate_command.rs
test_edit_command.rs
test_generate_md_cli_help.rs
test_git_clone.rs
test_git_colocated.rs
test_git_fetch.rs
test_git_import_export.rs
test_git_init.rs
test_git_push.rs
test_git_remotes.rs
test_git_submodule.rs
test_gitignores.rs
test_global_opts.rs cli --ignore-immutable help: remove double negative 2024-05-03 15:50:17 -07:00
test_immutable_commits.rs
test_init_command.rs
test_interdiff_command.rs conflicts.rs: label conflict number and sides next to conflict markers 2024-05-05 18:42:14 -07:00
test_log_command.rs
test_move_command.rs squash: don't rewrite commits that didn't change 2024-04-30 20:03:57 -07:00
test_new_command.rs
test_next_prev_commands.rs
test_obslog_command.rs conflicts.rs: label conflict number and sides next to conflict markers 2024-05-05 18:42:14 -07:00
test_operations.rs
test_parallelize_command.rs
test_rebase_command.rs rebase: do not print out commit summaries of skipped commits 2024-05-01 01:35:25 +08:00
test_repo_change_report.rs
test_resolve_command.rs conflicts.rs: label conflict number and sides next to conflict markers 2024-05-05 18:42:14 -07:00
test_restore_command.rs conflicts.rs: label conflict number and sides next to conflict markers 2024-05-05 18:42:14 -07:00
test_revset_output.rs
test_root.rs
test_shell_completion.rs
test_show_command.rs
test_sparse_command.rs
test_split_command.rs
test_squash_command.rs conflicts.rs: label conflict number and sides next to conflict markers 2024-05-05 18:42:14 -07:00
test_status_command.rs cli: status: when current change has conflicts, display instructions to resolve them 2024-05-01 15:59:12 +02:00
test_tag_command.rs cli: show commit summary in "tag list" 2024-05-03 15:16:52 +09:00
test_templater.rs
test_tree_level_conflicts.rs
test_undo.rs
test_unsquash_command.rs
test_untrack_command.rs
test_util_command.rs
test_working_copy.rs
test_workspaces.rs