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

[PATCH 3/3] Documentation/git-config: fix --get-all description

From
John Keeping <john@keeping.me.uk>
Date
Feb 28, 2016, 11:54 UTC
Message-ID
<77578beabdb50d696ad9155ef2e0e1847c22a9ad.1456660027.git.john@keeping.me.uk>
In-Reply-To
<cover.1456660027.git.john@keeping.me.uk>

--get does not fail if a key is multi-valued, it returns the last value as described in its documentation. Clarify the description of --get-all to avoid implying that --get does fail in this case.

Signed-off-by: John Keeping <john@keeping.me.uk>
---
 Documentation/git-config.txt | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/Documentation/git-config.txt b/Documentation/git-config.txt
index e9c755f..6fc08e3 100644
--- a/Documentation/git-config.txt
+++ b/Documentation/git-config.txt
@@ -86,8 +86,7 @@ OPTIONS
 	found and the last value 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, but returns all values for a multi-valued key.
 
 --get-regexp::
 	Like --get-all, but interprets the name as a regular expression and
-- 
2.7.1.503.g3cfa3ac
Previous: John KeepingNext: Junio C Hamano
Message 7 of 11 in “git config --get-urlmatch does not set exit code 1 when no match is found”
  1. GuilhermeFeb 28, 2016
  2. John KeepingFeb 28, 2016
  3. John KeepingFeb 28, 2016
  4. 0/3 Re: git config --get-urlmatch does not set exit code 1 when no match is foundJohn Keeping, Feb 28, 2016
  5. 1/3 config: fail if --get-urlmatch finds no valueJohn Keeping, Feb 28, 2016
  6. 2/3 Documentation/git-config: use bulleted list for exit codesJohn Keeping, Feb 28, 2016
  7. 3/3 Documentation/git-config: fix --get-all descriptionJohn Keeping, Feb 28, 2016
  8. Junio C HamanoFeb 28, 2016
  9. Jeff KingFeb 29, 2016
  10. GuilhermeFeb 29, 2016
  11. Jeff KingMar 1, 2016

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.