summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-09-09 19:53:56 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-09-09 19:53:57 (GMT)
commit93424a0fd882a3ed1c1f7a8b6fe71fdaa21cce99 (patch)
treeb20b3ed1d2c1ecad9d7bc09a6679ed24015dfe36 /Documentation
parent713c6f3ab06fcda921262b718742cff7f208da9a (diff)
parenta789ca70e7a5b02973b116d21674acd795238f99 (diff)
downloadgit-93424a0fd882a3ed1c1f7a8b6fe71fdaa21cce99.zip
git-93424a0fd882a3ed1c1f7a8b6fe71fdaa21cce99.tar.gz
git-93424a0fd882a3ed1c1f7a8b6fe71fdaa21cce99.tar.bz2
Merge branch 'jk/command-line-config-empty-string'
"git -c section.var command" and "git -c section.var= command" should pass the configuration differently (the former should be a boolean true, the latter should be an empty string). * jk/command-line-config-empty-string: config: teach "git -c" to recognize an empty string
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/git.txt b/Documentation/git.txt
index de7b870..26de4dd 100644
--- a/Documentation/git.txt
+++ b/Documentation/git.txt
@@ -452,6 +452,11 @@ example the following invocations are equivalent:
given will override values from configuration files.
The <name> is expected in the same format as listed by
'git config' (subkeys separated by dots).
++
+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.
--exec-path[=<path>]::
Path to wherever your core Git programs are installed.