From: Jeff King Date: Thu, 11 May 2017 09:11:06 +0000 (-0400) Subject: docs/config: give a relative includeIf example X-Git-Tag: v2.13.1~31^2~2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/994cd6c7ca2da9bf09582ba08cbad583cba76968?hp=--cc docs/config: give a relative includeIf example 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 Reviewed-by: Ævar Arnfjörð Bjarmason Signed-off-by: Junio C Hamano --- 994cd6c7ca2da9bf09582ba08cbad583cba76968 diff --git a/Documentation/config.txt b/Documentation/config.txt index 7e7a358aea..cc6d79e537 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 ~~~~~~