Skip to contentSkip to conversation

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

PATCH New Carlos Martín Nieto 1 participant 1 message Jun 15, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

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

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.

---

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(-)
Documentation/config.txt +1 -1
index 701fba9..1a571f4 100644
@@ -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".
 
Signature · 1 line
1.7.4.1