mirror of
https://github.com/martinvonz/jj.git
synced 2025-05-29 11:01:13 +00:00
docs: fix typo '--when.command' -> '--when.commands'
This commit is contained in:
parent
1bcd55d077
commit
88d3b52081
@ -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
|
* New `subject(pattern)` revset function that matches first line of commit
|
||||||
descriptions.
|
descriptions.
|
||||||
|
|
||||||
* Conditional configuration now supports `--when.command` to change configuration
|
* Conditional configuration now supports `--when.commands` to change configuration
|
||||||
based on subcommand.
|
based on subcommand.
|
||||||
|
|
||||||
### Fixed bugs
|
### Fixed bugs
|
||||||
|
@ -1458,12 +1458,12 @@ Condition keys:
|
|||||||
workspace`.
|
workspace`.
|
||||||
|
|
||||||
|
|
||||||
* `--when.command`: List of subcommands to match.
|
* `--when.commands`: List of subcommands to match.
|
||||||
|
|
||||||
Subcommands are space-separated and matched by prefix.
|
Subcommands are space-separated and matched by prefix.
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
--when.command = ["file"] # matches `jj file show`, `jj file list`, etc
|
--when.commands = ["file"] # matches `jj file show`, `jj file list`, etc
|
||||||
--when.command = ["file show"] # matches `jj file show` but *NOT* `jj file list`
|
--when.commands = ["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", "log"] # matches `jj file` *OR* `jj log` (or subcommand of either)
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user