git-config: better document default behavior for `--include`
As described in the commit message of 9b25a0b (config: add include directive, 2012-02-06), the `--include` option is only on by default in some cases. But our documentation described it as just "defaults to on", which doesn't tell the whole story. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jeff King committed
Jan 19, 2015 at 14:58 UTC
753a2cda11c4bfb51184acd474e9bdfa051f9895
1 file changed
+3
-1
Documentation/git-config.txt
+3
-1
@@ -181,7 +181,9 @@ See also <<FILES>>.
181
--includes::
182
--no-includes::
183
Respect `include.*` directives in config files when looking up
184
- values. Defaults to on.
184
+ values. Defaults to `off` when a specific file is given (e.g.,
185
+ using `--file`, `--global`, etc) and `on` when searching all
186
+ config files.
187
188
[[FILES]]
189
FILES