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

[PATCH] config --get-all: it is an error not to see any value

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 20, 2012, 00:24 UTC
Message-ID
<7v7gphunoc.fsf_-_@alter.siamese.dyndns.org>
In-Reply-To
<7vd2z9uobn.fsf@alter.siamese.dyndns.org>

The wording "... is not exactly one." incorrectly hinted as if having no value is not an error, but that was not what was intended. Clarify what similarity it wants to mention by elaborating the "Like get" part of the description.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
---
 Documentation/git-config.txt | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git i/Documentation/git-config.txt w/Documentation/git-config.txt
index eaea079..273239d 100644
--- i/Documentation/git-config.txt
+++ w/Documentation/git-config.txt
@@ -85,8 +85,9 @@ OPTIONS
 	found and error code 2 if multiple key values were found.
 
 --get-all::
-	Like get, but does not fail if the number of values for the key
-	is not exactly one.
+	Like `--get`, shows the value(s) given to the key, and signals an
+	error if there is no such key.  Unlike `--get`, does not
+	fail if there are multiple values defined for the key.
 
 --get-regexp::
 	Like --get-all, but interprets the name as a regular expression and
Previous: Junio C Hamano
Message 3 of 3 in “git config --git-all can return non-zero error code”
  1. Timur TabiNov 19, 2012
  2. Junio C HamanoNov 20, 2012
  3. config --get-all: it is an error not to see any valueJunio C Hamano, Nov 20, 2012

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.