git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v2 3/5] doc: config: document --[no-]value

From
Kkristofferhaugsbakk@fastmail.com <kristofferhaugsbakk@fastmail.com>
Date
Jul 1, 2025, 15:14 UTC
Message-ID
<c85b42e33310c87102b8543ab214564f7a2a9e64.1751382830.git.code@khaugsbakk.name>
In-Reply-To
<cover.1751382830.git.code@khaugsbakk.name>
From: Kristoffer Haugsbakk <code@khaugsbakk.name>

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>
---
 Documentation/git-config.adoc | 8 ++++++++
 1 file changed, 8 insertions(+)
diff --git a/Documentation/git-config.adoc b/Documentation/git-config.adoc
index d3ddc538555..03808b18d3e 100644
--- a/Documentation/git-config.adoc
+++ b/Documentation/git-config.adoc
@@ -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
-- 
2.50.0.136.g303b50f9132
Previous: kristofferhaugsbakk@fastmail.comNext: kristofferhaugsbakk@fastmail.com
Message 19 of 22 in “doc: config: update for the ps/config-subcommands series”
  1. 0/5 doc: config: update for the ps/config-subcommands serieskristofferhaugsbakk@fastmail.com, Jun 30, 2025
  2. 1/5 doc: config: document --[no-]show-nameskristofferhaugsbakk@fastmail.com, Jun 30, 2025
  3. 2/5 doc: config: use --value=<pattern> consistentlykristofferhaugsbakk@fastmail.com, Jun 30, 2025
  4. Kristoffer HaugsbakkJul 1, 2025
  5. Kristoffer HaugsbakkJul 1, 2025
  6. 3/5 doc: config: document --[no-]valuekristofferhaugsbakk@fastmail.com, Jun 30, 2025
  7. Eric SunshineJun 30, 2025
  8. 4/5 doc: config: use --value instead of value-patternkristofferhaugsbakk@fastmail.com, Jun 30, 2025
  9. 5/5 doc: config: mention --url in the synopsiskristofferhaugsbakk@fastmail.com, Jun 30, 2025
  10. Kristoffer HaugsbakkJul 1, 2025
  11. Junio C HamanoJun 30, 2025
  12. Kristoffer HaugsbakkJul 1, 2025
  13. Patrick SteinhardtJul 1, 2025
  14. Kristoffer HaugsbakkJul 1, 2025
  15. Junio C HamanoJul 1, 2025
  16. 0/5 doc: config: update for the ps/config-subcommands serieskristofferhaugsbakk@fastmail.com, Jul 1, 2025
  17. 1/5 doc: config: document --[no-]show-nameskristofferhaugsbakk@fastmail.com, Jul 1, 2025
  18. 2/5 config: use --value=<pattern> consistentlykristofferhaugsbakk@fastmail.com, Jul 1, 2025
  19. 3/5 doc: config: document --[no-]valuekristofferhaugsbakk@fastmail.com, Jul 1, 2025
  20. 4/5 doc: config: use --value instead of value-patternkristofferhaugsbakk@fastmail.com, Jul 1, 2025
  21. 5/5 config: mention --url in the synopsiskristofferhaugsbakk@fastmail.com, Jul 1, 2025
  22. Junio C HamanoJul 1, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.