Skip to content
New issue

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

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

Already on GitHub? # to your account

config: preserve key formatting on set_value() #5202

Merged
merged 2 commits into from
Dec 29, 2024

Conversation

yuja
Copy link
Contributor

@yuja yuja commented Dec 28, 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 2 commits December 28, 2024 22:27
It's unlikely that user would want to define all intermediate tables by
"jj config set foo.bar.baz ..".
I just noticed toml_edit::Table has a format-preserving insert() API. I think
it's better to retain the user-specified quoting style.
@yuja yuja merged commit 43ac4fa into jj-vcs:main Dec 29, 2024
18 checks passed
@yuja yuja deleted the push-zouotrwpsmoo branch December 29, 2024 00:57
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants