mirror of
https://github.com/martinvonz/jj.git
synced 2025-02-06 11:34:54 +00:00
Closes #5217 Motivating use case: [[--scope]] --when.command = ["log"] [--scope.ui] pager = "less" This adds a new (optional) field to `--when` config conditions, to inspect the current command. `--when.commands` is a list of space-separated values that matches a space-separated command. To be specific: --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 both `--when.commands` and `--when.repositories` are set, the intersection is used. |
||
---|---|---|
.. | ||
examples | ||
src | ||
testing | ||
tests | ||
build.rs | ||
Cargo.toml | ||
docs | ||
LICENSE |