[PATCH 2/4] docs/config: give a relative includeIf example
- From
Jeff King <peff@peff.net>
- Date
- May 11, 2017, 09:11 UTC
- Message-ID
- <20170511091106.cpk5emqtvp4cdeoi@sigill.intra.peff.net>
- In-Reply-To
- <20170511090905.tvkb4bk2ddjzjip4@sigill.intra.peff.net>
The changes in the previous commit hopefully clarify that the evaluation of an include "path" variable is the same no matter if it's in a conditional section or not. But since this question came up on the list, let's add an example that makes it obvious.
Signed-off-by: Jeff King <peff@peff.net> --- Documentation/config.txt | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/Documentation/config.txt b/Documentation/config.txt index d5a453ed3..929776954 100644 --- a/Documentation/config.txt +++ b/Documentation/config.txt @@ -187,6 +187,12 @@ Example [includeIf "gitdir:~/to/group/"] path = /path/to/foo.inc + ; relative paths are always relative to the including + ; file (if the condition is true); their location is not + ; affected by the condition + [includeIf "gitdir:/path/to/group/"] + path = foo.inc + Values ~~~~~~
-- 2.13.0.447.g4d26bc97c