History

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

Yuya Nishihara committed 3 years ago

Commit ea96ea31 parent 810789a8 files · +130 −14Browse files

Showing the changes to docs (1 of 8 files). Show all

Unified · Split

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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t