docs: fix typo '--when.command' -> '--when.commands'

This commit is contained in:
Bryce Berger 2025-01-27 16:35:56 -05:00 committed by Bryce Berger
parent 1bcd55d077
commit 88d3b52081
2 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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)
```