]> git.ipfire.org Git - thirdparty/git.git/blobdiff - Documentation/git.txt
config: teach "git -c" to recognize an empty string
[thirdparty/git.git] / Documentation / git.txt
index 64da795aba252d53e9fd9c11e6eb7d39397ff805..1557cd919d4ecf9133d1cd2cd449ead4b78c7f7f 100644 (file)
@@ -429,6 +429,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.