]> git.ipfire.org Git - thirdparty/git.git/commitdiff
config: document --[no-]value
authorKristoffer Haugsbakk <code@khaugsbakk.name>
Tue, 1 Jul 2025 15:14:30 +0000 (17:14 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 1 Jul 2025 17:28:41 +0000 (10:28 -0700)
These options were introduced in a series of commits from
fe3ccc7aab (Merge branch 'ps/config-subcommands', 2024-05-15).[1]
But they were not documented here.

Document this option and the negated form according to the current
convention.[2]

[1]: `--value` is a replacement for the `value-pattern`
    positional argument
[2]: https://lore.kernel.org/git/xmqqcyct1mtq.fsf@gitster.g/

Acked-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Kristoffer Haugsbakk <code@khaugsbakk.name>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-config.adoc

index d3ddc53855538b1135478db36b20bb1e90bbc6ca..03808b18d3e7135b56c22b6ced9916c4c8468f32 100644 (file)
@@ -200,6 +200,14 @@ See also <<FILES>>.
        section in linkgit:gitrevisions[7] for a more complete list of
        ways to spell blob names.
 
+`--value=<pattern>`::
+`--no-value`::
+       With `get`, `set`, and `unset`, match only against
+       _<pattern>_. The pattern is an extended regular expression unless
+       `--fixed-value` is given.
++
+Use `--no-value` to unset _<pattern>_.
+
 --fixed-value::
        When used with the `value-pattern` argument, treat `value-pattern` as
        an exact string instead of a regular expression. This will restrict