mirror of
https://github.com/martinvonz/jj.git
synced 2025-02-06 11:34:54 +00:00
cbb743cfb5
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. |
||
---|---|---|
.. | ||
design | ||
governance | ||
technical | ||
bookmarks.md | ||
cli-reference.md | ||
code-of-conduct.md | ||
community_tools.md | ||
config-schema.json | ||
config.md | ||
config.toml | ||
conflicts.md | ||
contributing.md | ||
design_doc_blueprint.md | ||
design_docs.md | ||
FAQ.md | ||
filesets.md | ||
git-comparison.md | ||
git-compatibility.md | ||
github.md | ||
glossary.md | ||
index.md | ||
install-and-setup.md | ||
operation-log.md | ||
related-work.md | ||
revsets.md | ||
roadmap.md | ||
sapling-comparison.md | ||
templates.md | ||
testimonials.md | ||
tutorial.md | ||
windows.md | ||
working-copy.md |