From 5ba6e6cfe3c6279019d8a1d915bd0e9f35b177c4 Mon Sep 17 00:00:00 2001 From: Kristoffer Haugsbakk Date: Tue, 1 Jul 2025 17:14:30 +0200 Subject: [PATCH] config: document --[no-]value 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 Signed-off-by: Kristoffer Haugsbakk Signed-off-by: Junio C Hamano --- Documentation/git-config.adoc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/git-config.adoc b/Documentation/git-config.adoc index d3ddc53855..03808b18d3 100644 --- a/Documentation/git-config.adoc +++ b/Documentation/git-config.adoc @@ -200,6 +200,14 @@ See also <>. section in linkgit:gitrevisions[7] for a more complete list of ways to spell blob names. +`--value=`:: +`--no-value`:: + With `get`, `set`, and `unset`, match only against + __. The pattern is an extended regular expression unless + `--fixed-value` is given. ++ +Use `--no-value` to unset __. + --fixed-value:: When used with the `value-pattern` argument, treat `value-pattern` as an exact string instead of a regular expression. This will restrict -- 2.47.2