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

[PATCH 2/3] Documentation/git-config: use bulleted list for exit codes

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

Using a numbered list is confusing because the exit codes are not listed in order so the numbers at the start of each line do not match the exit codes described by the following text. Switch to a bulleted list so that the only number appearing on each line is the exit code described.

Signed-off-by: John Keeping <john@keeping.me.uk>
---
 Documentation/git-config.txt | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/Documentation/git-config.txt b/Documentation/git-config.txt
index 2a04e87..e9c755f 100644
--- a/Documentation/git-config.txt
+++ b/Documentation/git-config.txt
@@ -58,13 +58,13 @@ that location (you can say '--local' but that is the default).
 This command will fail with non-zero status upon error.  Some exit
 codes are:
 
-. The config file is invalid (ret=3),
-. can not write to the config file (ret=4),
-. no section or name was provided (ret=2),
-. the section or key is invalid (ret=1),
-. you try to unset an option which does not exist (ret=5),
-. you try to unset/set an option for which multiple lines match (ret=5), or
-. you try to use an invalid regexp (ret=6).
+- The config file is invalid (ret=3),
+- can not write to the config file (ret=4),
+- no section or name was provided (ret=2),
+- the section or key is invalid (ret=1),
+- you try to unset an option which does not exist (ret=5),
+- you try to unset/set an option for which multiple lines match (ret=5), or
+- you try to use an invalid regexp (ret=6).
 
 On success, the command returns the exit code 0.
 
-- 
2.7.1.503.g3cfa3ac
Previous: John KeepingNext: John Keeping
Message 6 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.