jj/cli/tests
Yuya Nishihara 89e0a7021a cli: git: store absolute remote path in config file
The "git" CLI chdir()s to the work tree root, so paths in config file are
usually resolved relative to the workspace root. OTOH, jj doesn't modify the
process environment, so libgit2 resolves remote paths relative to cwd, not to
the workspace root. To mitigate the problem, this patch makes "jj git remote"
sub commands to store resolved path in .git/config. It would be nice if we can
reconfigure in-memory git2 remote object to use absolute paths (or set up
in-memory named remote without writing a config file), but there's no usable
API afaik.

This behavior is different from "git remote add"/"set-url". I don't know the
rationale, but these commands don't resolve relative paths, whereas "git clone"
writes resolved path to .git/config. I think it's more consistent to make all
"jj git" sub commands resolve relative paths.
2025-01-12 01:45:03 +00:00
..
common cli: git clone: convert local Git remote path to slash-separated path 2024-12-23 09:40:52 +09:00
cli-reference@.md.snap cli: git: store absolute remote path in config file 2025-01-12 01:45:03 +00:00
runner.rs cli: delete deprecated jj checkout command 2024-11-21 11:50:03 -06:00
test_abandon_command.rs cli: abandon, describe: parse -rREV option properly 2024-12-23 22:58:06 +09:00
test_absorb_command.rs absorb: abandon source commit if it becomes discardable 2024-12-21 09:19:54 +09:00
test_acls.rs diff: remove duplicated source message from AccessDenied error 2024-10-23 23:51:21 +09:00
test_advance_bookmarks.rs everything: Rename branches to bookmarks 2024-09-11 18:54:45 +02:00
test_alias.rs cli: warn if command matches with aliases inserted by --config* arguments 2025-01-08 09:40:31 +09:00
test_backout_command.rs cli: drop support for jj init --{git, git_repo} 2025-01-03 10:15:01 -06:00
test_bookmark_command.rs cli: refer to revset argument using REVSET(S) in synopsis 2024-12-18 10:13:44 -08:00
test_builtin_aliases.rs cli: replace --config-toml=TOML with --config=NAME=VALUE 2024-12-17 20:12:12 +09:00
test_commit_command.rs cli: fix interactive diff selection to not retain unmatched files 2025-01-04 22:21:37 +09:00
test_commit_template.rs sign: Add templater methods to show signature info 2025-01-04 13:24:08 +01:00
test_completion.rs cli: complete: fix stderr during autocomplete of revsets 2025-01-11 12:34:21 +00:00
test_concurrent_operations.rs log: emit working-copy branch first if included in the revset 2024-11-20 10:50:16 +09:00
test_config_command.rs config: allow inline table syntax in mutation and conditional scope API 2025-01-10 02:56:21 +00:00
test_copy_detection.rs copy-tracking: add a command line driver with a simple test 2024-07-03 20:26:30 -04:00
test_debug_command.rs revset: reorganize expression resolution/evaluation methods 2024-11-08 10:34:02 +09:00
test_describe_command.rs cli: drop support for jj init --{git, git_repo} 2025-01-03 10:15:01 -06:00
test_diff_command.rs diff: add merge-tools.*.diff-expected-exit-codes 2025-01-08 08:03:59 +00:00
test_diffedit_command.rs tests: leverage set_up_fake_diff_editor() in test_diffedit_3pane() 2024-12-20 19:28:01 +09:00
test_duplicate_command.rs docs/cli: update URLs to from martinvonz user to jj-vcs org 2024-12-17 12:44:44 -08:00
test_edit_command.rs cli: refer to revset argument using REVSET(S) in synopsis 2024-12-18 10:13:44 -08:00
test_evolog_command.rs cli: oplog: add builtin_op_log_oneline template 2025-01-09 15:58:40 +00:00
test_file_annotate_command.rs cli: don't use format_*() in annotate template, truncate author, omit commit id 2024-11-05 14:49:57 +09:00
test_file_chmod_command.rs docs/cli: update URLs to from martinvonz user to jj-vcs org 2024-12-17 12:44:44 -08:00
test_file_show_command.rs tests: rename test_file_print_command.rs to_file_show_command.rs 2024-10-04 20:52:59 +09:00
test_file_track_untrack_commands.rs cli: refer to fileset argument using FILESETS in synopsis 2024-12-18 10:13:44 -08:00
test_fix_command.rs cli: remove handling of deprecated fix.tool-command config 2025-01-10 05:45:16 +00:00
test_generate_md_cli_help.rs test_generate_cli_reference: fixup to 52c415e, remove mysterious comment 2024-06-15 20:30:40 -07:00
test_git_clone.rs cli: resolve settings for newly initialized/cloned workspace 2025-01-06 10:39:48 +09:00
test_git_colocated.rs git: add dummy conflict to index if necessary 2025-01-06 19:17:51 -06:00
test_git_fetch.rs docs/cli: update URLs to from martinvonz user to jj-vcs org 2024-12-17 12:44:44 -08:00
test_git_import_export.rs templates: make op_summary more readable 2024-10-13 20:06:03 -07:00
test_git_init.rs tests: insert insta::allow_duplicates! { .. } per snapshot 2025-01-10 01:00:09 +00:00
test_git_private_commits.rs cli: replace --config-toml=TOML with --config=NAME=VALUE 2024-12-17 20:12:12 +09:00
test_git_push.rs git: port s/bookmark/branch/ renames to config migration rules 2025-01-09 07:23:08 +00:00
test_git_remotes.rs cli: git: store absolute remote path in config file 2025-01-12 01:45:03 +00:00
test_git_submodule.rs tests: avoid deprecated jj init --git/--git-repo 2024-05-17 13:55:20 -07:00
test_gitignores.rs everything: Rename branches to bookmarks 2024-09-11 18:54:45 +02:00
test_global_opts.rs config: load system host/user name by CLI and insert as env-base layer 2025-01-04 17:54:28 +09:00
test_help_command.rs cli: refer to revset argument using REVSET(S) in synopsis 2024-12-18 10:13:44 -08:00
test_immutable_commits.rs docs/cli: update URLs to from martinvonz user to jj-vcs org 2024-12-17 12:44:44 -08:00
test_init_command.rs cli: drop support for jj init --{git, git_repo} 2025-01-03 10:15:01 -06:00
test_interdiff_command.rs cli: delete deprecated jj checkout command 2024-11-21 11:50:03 -06:00
test_log_command.rs cli: oplog: add builtin_op_log_oneline template 2025-01-09 15:58:40 +00:00
test_new_command.rs cli: refer to revset argument using REVSET(S) in synopsis 2024-12-18 10:13:44 -08:00
test_next_prev_commands.rs cli: drop support for jj init --{git, git_repo} 2025-01-03 10:15:01 -06:00
test_operations.rs op diff: remove redundant "Change {change_id}" from changed commits graph 2025-01-11 01:23:51 +00:00
test_parallelize_command.rs log: emit working-copy branch first if included in the revset 2024-11-20 10:50:16 +09:00
test_rebase_command.rs cli: refer to revset argument using REVSET(S) in synopsis 2024-12-18 10:13:44 -08:00
test_repo_change_report.rs docs/cli: update URLs to from martinvonz user to jj-vcs org 2024-12-17 12:44:44 -08:00
test_resolve_command.rs resolve: try to resolve all conflicted files in fileset 2025-01-08 23:52:21 +00:00
test_restore_command.rs cli: restore: add --interactive flag 2025-01-05 10:14:29 +09:00
test_revset_output.rs settings: parse TOML date-time value as well as string timestamp 2024-12-18 09:51:56 +09:00
test_root.rs tests: add convenient method to initialize TestWorkspace with test settings 2025-01-06 22:37:33 +09:00
test_shell_completion.rs
test_show_command.rs cli: oplog: add builtin_op_log_oneline template 2025-01-09 15:58:40 +00:00
test_simplify_parents_command.rs tests: insert insta::allow_duplicates! { .. } per snapshot 2025-01-10 01:00:09 +00:00
test_sparse_command.rs windows: avoid UNC paths in run_ui_editor 2024-07-04 11:30:20 +10:00
test_split_command.rs cli: fix interactive diff selection to not retain unmatched files 2025-01-04 22:21:37 +09:00
test_squash_command.rs cli: refer to fileset argument using FILESETS in synopsis 2024-12-18 10:13:44 -08:00
test_status_command.rs status: show untracked files 2025-01-05 17:43:59 +01:00
test_tag_command.rs everything: Rename branches to bookmarks 2024-09-11 18:54:45 +02:00
test_templater.rs templater: add config(name) function 2025-01-11 01:40:23 +00:00
test_undo.rs cli: git push: do not push new bookmarks by default 2024-11-19 21:11:22 +09:00
test_unsquash_command.rs cli: replace --config-toml=TOML with --config=NAME=VALUE 2024-12-17 20:12:12 +09:00
test_util_command.rs docs/cli: update URLs to from martinvonz user to jj-vcs org 2024-12-17 12:44:44 -08:00
test_working_copy.rs local_working_copy: store materialized conflict marker length 2024-12-21 11:36:30 -06:00
test_workspaces.rs tests: insert insta::allow_duplicates! { .. } per snapshot 2025-01-10 01:00:09 +00:00