ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/cli/tests
Martin von Zweigbergk 4d42604913 git_backend: write trees involved in conflict in git commit header
We haven't used custom Git commit headers for two main reasons:

1. I don't want commits created by jj to be different from any other
   commits. I don't want Git projects to get annoyed by such commit
   and reject them.

2. I've been concerned that tools don't know how to handle such
   headers, perhaps even resulting in crashes.

The first argument doesn't apply to commits with conflicts because
such commits would never be accepted by a project whether or not they
use custom commit headers. The second argument is less relevant for
conflicted commits because most tools will be confused by such commits
anyway.

Storing conflict information in commit headers means that we can
transfer them via the regular Git wire protocol. We already include
the tree objects nested inside the root-level tree, so they will also
be transferred.

So, let's start by writing the information redundantly to the commit
header and to the existing storage. That way we can roll it back if we
realize there's a problem with using commit headers.
2024-03-10 20:51:05 -07:00
..
common cargo: upgrade chrono from 0.4.34 to 0.4.35 2024-03-06 09:20:23 -08:00
cli-reference@.md.snap cli: add "config list --template" support 2024-03-06 11:38:57 +09:00
runner.rs
test_abandon_command.rs
test_alias.rs
test_branch_command.rs
test_builtin_aliases.rs
test_cat_command.rs
test_checkout.rs
test_chmod_command.rs git_backend: write trees involved in conflict in git commit header 2024-03-10 20:51:05 -07:00
test_commit_command.rs cli: add --tool=<name> option to diff/merge editing commands 2024-03-04 01:33:43 +09:00
test_commit_template.rs templater: add string.len() and list.len() methods 2024-03-01 08:51:20 +09:00
test_concurrent_operations.rs
test_config_command.rs cli: colorize output of "config list" 2024-03-06 11:38:57 +09:00
test_debug_command.rs
test_describe_command.rs
test_diff_command.rs Add --context flag for diffs. 2024-03-05 07:48:23 +01:00
test_diffedit_command.rs git_backend: write trees involved in conflict in git commit header 2024-03-10 20:51:05 -07:00
test_duplicate_command.rs
test_edit_command.rs
test_generate_md_cli_help.rs
test_git_clone.rs
test_git_colocated.rs tests: avoid deprecated jj co 2024-03-06 10:19:46 -08:00
test_git_fetch.rs
test_git_import_export.rs
test_git_init.rs tests: move strip_last_line() to common module 2024-03-01 08:51:06 +09:00
test_git_push.rs git_backend: write trees involved in conflict in git commit header 2024-03-10 20:51:05 -07:00
test_git_remotes.rs
test_git_submodule.rs
test_gitignores.rs
test_global_opts.rs repo_path: show more detailed error if filesystem path failed to parse 2024-03-09 11:01:43 +09:00
test_immutable_commits.rs git_backend: write trees involved in conflict in git commit header 2024-03-10 20:51:05 -07:00
test_init_command.rs tests: move strip_last_line() to common module 2024-03-01 08:51:06 +09:00
test_interdiff_command.rs
test_log_command.rs Add configuration options for node symbols in the graphs. 2024-03-09 21:16:58 +01:00
test_move_command.rs
test_new_command.rs
test_next_prev_commands.rs tests: avoid deprecated jj co 2024-03-06 10:19:46 -08:00
test_obslog_command.rs git_backend: write trees involved in conflict in git commit header 2024-03-10 20:51:05 -07:00
test_operations.rs cli: enrich the error about required template value with a hint 2024-03-06 08:12:40 +05:00
test_rebase_command.rs
test_repo_change_report.rs git_backend: write trees involved in conflict in git commit header 2024-03-10 20:51:05 -07:00
test_resolve_command.rs git_backend: write trees involved in conflict in git commit header 2024-03-10 20:51:05 -07:00
test_restore_command.rs git_backend: write trees involved in conflict in git commit header 2024-03-10 20:51:05 -07:00
test_revset_output.rs repo_path: show more detailed error if filesystem path failed to parse 2024-03-09 11:01:43 +09:00
test_root.rs
test_shell_completion.rs
test_show_command.rs cli: enrich the error about required template value with a hint 2024-03-06 08:12:40 +05:00
test_sparse_command.rs
test_split_command.rs
test_squash_command.rs tests: avoid deprecated jj co 2024-03-06 10:19:46 -08:00
test_status_command.rs
test_tag_command.rs
test_templater.rs templater: expand similarity hint with aliases 2024-02-28 09:03:04 +09:00
test_tree_level_conflicts.rs git_backend: write trees involved in conflict in git commit header 2024-03-10 20:51:05 -07:00
test_undo.rs
test_unsquash_command.rs tests: avoid deprecated jj co 2024-03-06 10:19:46 -08:00
test_untrack_command.rs
test_util_command.rs
test_working_copy.rs
test_workspaces.rs git_backend: write trees involved in conflict in git commit header 2024-03-10 20:51:05 -07:00