mirror of
https://github.com/martinvonz/jj.git
synced 2025-02-12 07:24:11 +00:00
docs: fix typo '--when.command' -> '--when.commands'
This commit is contained in:
parent
1bcd55d077
commit
88d3b52081
2 changed files with 5 additions and 5 deletions
|
@ -140,7 +140,7 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|||
* New `subject(pattern)` revset function that matches first line of commit
|
||||
descriptions.
|
||||
|
||||
* Conditional configuration now supports `--when.command` to change configuration
|
||||
* Conditional configuration now supports `--when.commands` to change configuration
|
||||
based on subcommand.
|
||||
|
||||
### Fixed bugs
|
||||
|
|
|
@ -1458,12 +1458,12 @@ Condition keys:
|
|||
workspace`.
|
||||
|
||||
|
||||
* `--when.command`: List of subcommands to match.
|
||||
* `--when.commands`: List of subcommands to match.
|
||||
|
||||
Subcommands are space-separated and matched by prefix.
|
||||
|
||||
```toml
|
||||
--when.command = ["file"] # matches `jj file show`, `jj file list`, etc
|
||||
--when.command = ["file show"] # matches `jj file show` but *NOT* `jj file list`
|
||||
--when.command = ["file", "log"] # matches `jj file` *OR* `jj log` (or subcommand of either)
|
||||
--when.commands = ["file"] # matches `jj file show`, `jj file list`, etc
|
||||
--when.commands = ["file show"] # matches `jj file show` but *NOT* `jj file list`
|
||||
--when.commands = ["file", "log"] # matches `jj file` *OR* `jj log` (or subcommand of either)
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue