summaryrefslogtreecommitdiff
path: root/Documentation/config.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-08-23 21:13:08 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-08-23 21:13:08 (GMT)
commit76be4487f08d40bd1dba0d5b0dcbd2513ca26e8c (patch)
treebc815e24db637b9cbfc3e48c98d3b549f8a8b352 /Documentation/config.txt
parentad7d3c3b391b73207fbb29da99d4f64ad0c54f00 (diff)
parent7f0a02be2f2712f66daa730e389f45e3e96f1edd (diff)
downloadgit-76be4487f08d40bd1dba0d5b0dcbd2513ca26e8c.zip
git-76be4487f08d40bd1dba0d5b0dcbd2513ca26e8c.tar.gz
git-76be4487f08d40bd1dba0d5b0dcbd2513ca26e8c.tar.bz2
Merge branch 'ah/doc-empty-string-is-false'
Doc update. * ah/doc-empty-string-is-false: doc: clarify "config --bool" behaviour with empty string
Diffstat (limited to 'Documentation/config.txt')
-rw-r--r--Documentation/config.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/Documentation/config.txt b/Documentation/config.txt
index d5c9c4c..478b943 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -216,15 +216,15 @@ boolean::
synonyms are accepted for 'true' and 'false'; these are all
case-insensitive.
- true;; Boolean true can be spelled as `yes`, `on`, `true`,
- or `1`. Also, a variable defined without `= <value>`
+ true;; Boolean true literals are `yes`, `on`, `true`,
+ and `1`. Also, a variable defined without `= <value>`
is taken as true.
- false;; Boolean false can be spelled as `no`, `off`,
- `false`, or `0`.
+ false;; Boolean false literals are `no`, `off`, `false`,
+ `0` and the empty string.
+
When converting value to the canonical form using `--bool` type
-specifier; 'git config' will ensure that the output is "true" or
+specifier, 'git config' will ensure that the output is "true" or
"false" (spelled in lowercase).
integer::