Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: don't ignore diff --tool=:builtin, report error #3166

Merged
merged 4 commits into from
Feb 29, 2024

Conversation

yuja
Copy link
Contributor

@yuja yuja commented Feb 29, 2024

Checklist

If applicable:

  • I have updated CHANGELOG.md
  • I have updated the documentation (README.md, docs/, demos/)
  • I have updated the config schema (cli/src/config-schema.json)
  • I have added tests to cover my changes

yuja added 4 commits February 29, 2024 23:35
I'm going to split get_tool_config() to fix "diff --tool=:builtin", and it
doesn't make sense to duplicate get_tool_config_from_args() per backing
get_tool_config() functions.
The :builtin tool only applies to merge or diff editor.
Before, --tool=:builtin argument was ignored and the tool was loaded from
"ui.diff.tool" option. Since there is no single builtin diff format, :builtin
doesn't make sense here. Maybe we can translate ":<format>" to the internal
diff format instead, but that will also mean "ui.diff.tool" and ".format" can
be merged.

This partially reverts 409356f "merge_tools: enable `:builtin` as default
diff/merge editor."
@yuja yuja force-pushed the push-uysztopmrkwm branch from 62589c6 to 96ccb87 Compare February 29, 2024 14:36
cli/src/merge_tools/mod.rs Show resolved Hide resolved
@yuja yuja merged commit 9698a13 into jj-vcs:main Feb 29, 2024
16 checks passed
@yuja yuja deleted the push-uysztopmrkwm branch February 29, 2024 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants