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

[PATCH] Documentation/config.txt: make truth value of numbers more explicit

From
Carlos Martín Nieto <cmn@elego.de>
Date
Mar 30, 2011, 10:22 UTC
Message-ID
<1301480552-23940-1-git-send-email-cmn@elego.de>

Change the order to 1/0 to have the same true/false order as the rest of the possibilities for a boolean variable in order not not confuse users.

Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
---

Though if I read the source correctly, anything other than a 0 will give a true result, but it's better if we tell people to use 1.

 Documentation/config.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Documentation/config.txt b/Documentation/config.txt
index 701fba9..1a571f4 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -62,7 +62,7 @@ Internal whitespace within a variable value is retained verbatim.
 
 The values following the equals sign in variable assign are all either
 a string, an integer, or a boolean.  Boolean values may be given as yes/no,
-0/1, true/false or on/off.  Case is not significant in boolean values, when
+1/0, true/false or on/off.  Case is not significant in boolean values, when
 converting value to the canonical form using '--bool' type specifier;
 'git config' will ensure that the output is "true" or "false".
 
-- 
1.7.4.1
Message 1 of 1 in “Documentation/config.txt: make truth value of numbers more explicit”
  1. Documentation/config.txt: make truth value of numbers more explicitCarlos Martín Nieto, Mar 30, 2011

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.