Skip to content

Commit

Permalink
git-config: better document default behavior for --include
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeff King authored and Junio C Hamano committed Feb 13, 2016
1 parent 9b25a0b commit 753a2cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Documentation/git-config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ See also <<FILES>>.
--includes::
--no-includes::
Respect `include.*` directives in config files when looking up
values. Defaults to on.
values. Defaults to `off` when a specific file is given (e.g.,
using `--file`, `--global`, etc) and `on` when searching all
config files.

[[FILES]]
FILES
Expand Down

0 comments on commit 753a2cd

Please sign in to comment.