summaryrefslogtreecommitdiff
path: root/Documentation/git.txt
diff options
context:
space:
mode:
authorAndreas Heiduk <asheiduk@gmail.com>2017-08-14 22:12:18 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-08-14 22:47:56 (GMT)
commit7f0a02be2f2712f66daa730e389f45e3e96f1edd (patch)
tree29283dc443852273f63c48f04bf8fa39f3ac1ca5 /Documentation/git.txt
parent3b827444811d7eddeddd44850f5dbbb4d59747f5 (diff)
downloadgit-7f0a02be2f2712f66daa730e389f45e3e96f1edd.zip
git-7f0a02be2f2712f66daa730e389f45e3e96f1edd.tar.gz
git-7f0a02be2f2712f66daa730e389f45e3e96f1edd.tar.bz2
doc: clarify "config --bool" behaviour with empty string
`git config --bool xxx.yyy` returns `true` for `[xxx]yyy` but `false` for `[xxx]yyy=` or `[xxx]yyy=""`. This is tested in t1300-repo-config.sh since 09bc098c2. Signed-off-by: Andreas Heiduk <asheiduk@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git.txt')
-rw-r--r--Documentation/git.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/git.txt b/Documentation/git.txt
index cc21536..d5ddb38 100644
--- a/Documentation/git.txt
+++ b/Documentation/git.txt
@@ -571,7 +571,8 @@ example the following invocations are equivalent:
Note that omitting the `=` in `git -c foo.bar ...` is allowed and sets
`foo.bar` to the boolean true value (just like `[foo]bar` would in a
config file). Including the equals but with an empty value (like `git -c
-foo.bar= ...`) sets `foo.bar` to the empty string.
+foo.bar= ...`) sets `foo.bar` to the empty string which ` git config
+--bool` will convert to `false`.
--exec-path[=<path>]::
Path to wherever your core Git programs are installed.