cli: load configs from .jj/repo/config.toml

Since per-repo config may contain CLI settings, it must be visible to CLI.
Therefore, UserSettings::with_repo() -> RepoSettings isn't used, and its
implementation is nullified by this commit.

#616
This commit is contained in:
Yuya Nishihara 2023-01-02 14:18:38 +09:00
parent 810789a830
commit ea96ea3ffe
8 changed files with 130 additions and 14 deletions

View file

@ -2,9 +2,12 @@
These are the config settings available to jj/Jujutsu.
The config settings are located at `~/.jjconfig.toml`. Less common ways
The config settings are loaded from the following locations. Less common ways
to specify `jj` config settings are discussed in a later section.
* `~/.jjconfig.toml` (global)
* `.jj/repo/config.toml` (per-repository)
See the [TOML site](https://toml.io/en/) for more on syntax.
One thing to remember is that anything under a heading can be dotted
e.g. `user.name = "YOUR NAME"` is equivalent to: