jj/lib
Bryce Berger cbb743cfb5 config: add --when.command to scope resolution
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.
2025-01-24 05:30:07 +00:00
..
benches style: add semicolon at the end of expressions used as statements 2024-10-04 22:29:13 +02:00
gen-protos
proc-macros
src config: add --when.command to scope resolution 2025-01-24 05:30:07 +00:00
tests git: spawn a separate git process for network operations 2025-01-23 16:50:53 +00:00
testutils repo: move rebase_descendants_with_options_return_map() to tests 2025-01-18 01:21:28 +00:00
Cargo.toml lib: remove use of zstd 2025-01-08 22:02:21 +00:00
LICENSE