mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-18 02:04:19 +00:00
config.md
: Fixup to complicated dotted example from 6cc7aa7
Added @martinvonz 's suggestion from https://github.com/martinvonz/jj/pull/1263.
This commit is contained in:
parent
f70e6987b5
commit
9df7919763
1 changed files with 11 additions and 3 deletions
|
@ -2,6 +2,8 @@
|
|||
|
||||
These are the config settings available to jj/Jujutsu.
|
||||
|
||||
|
||||
|
||||
The config settings are loaded from the following locations. Less common ways to
|
||||
specify `jj` config settings are discussed in a later section.
|
||||
|
||||
|
@ -17,14 +19,20 @@ e.g. `user.name = "YOUR NAME"` is equivalent to:
|
|||
name = "YOUR NAME"
|
||||
```
|
||||
|
||||
For a more complicated example,
|
||||
For future reference, here are a couple of more complicated examples,
|
||||
|
||||
```toml
|
||||
# Dotted style
|
||||
template-aliases."format_short_id(id)" = "id.shortest(12)"
|
||||
colors."commit_id prefix".bold = true
|
||||
|
||||
# is equivalent to:
|
||||
[template-aliases]
|
||||
"format_short_id(id)" = "id.shortest(12)"
|
||||
```
|
||||
|
||||
is equivalent to `template-aliases."format_short_id(id)" = "id.shortest(12)"`.
|
||||
[colors]
|
||||
"commit_id prefix" = { bold = true }
|
||||
```
|
||||
|
||||
Jujutsu favors the dotted style in these instructions, if only because it's
|
||||
easier to write down in an unconfusing way. If you are confident with TOML
|
||||
|
|
Loading…
Reference in a new issue