summaryrefslogtreecommitdiff
path: root/Documentation/config.txt
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2017-05-11 09:11:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-05-12 01:06:58 (GMT)
commit994cd6c7ca2da9bf09582ba08cbad583cba76968 (patch)
tree5bb0f1454472064405f6b95c4447b7e233971ae6 /Documentation/config.txt
parent9d71d94d34fb3d3bb206ab9d5dbe08eb529ca729 (diff)
downloadgit-994cd6c7ca2da9bf09582ba08cbad583cba76968.zip
git-994cd6c7ca2da9bf09582ba08cbad583cba76968.tar.gz
git-994cd6c7ca2da9bf09582ba08cbad583cba76968.tar.bz2
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 <peff@peff.net> Reviewed-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/config.txt')
-rw-r--r--Documentation/config.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/config.txt b/Documentation/config.txt
index 7e7a358..cc6d79e 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
~~~~~~