summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2012-04-29 17:51:27 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-04-29 17:51:27 -0700
commit5fa8bf6bf9d20ccb37ed46ec7027a9ac64b2a2a7 (patch)
tree525bf6d5cec5b2cb0f36dcc578903fa06e380823 /Documentation
parentMerge branch 'pw/t5800-import-race-fix' (diff)
parentconfig: expand tildes in include.path variable (diff)
downloadtgif-5fa8bf6bf9d20ccb37ed46ec7027a9ac64b2a2a7.tar.xz
Merge branch 'mm/include-userpath'
The new "include.path" directive in the configuration files learned to understand "~/path" and "~user/path". By Jeff King * mm/include-userpath: config: expand tildes in include.path variable
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/config.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/Documentation/config.txt b/Documentation/config.txt
index fb386abc51..83ad8ebce0 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -95,7 +95,9 @@ included file is expanded immediately, as if its contents had been
found at the location of the include directive. If the value of the
`include.path` variable is a relative path, the path is considered to be
relative to the configuration file in which the include directive was
-found. See below for examples.
+found. The value of `include.path` is subject to tilde expansion: `{tilde}/`
+is expanded to the value of `$HOME`, and `{tilde}user/` to the specified
+user's home directory. See below for examples.
Example
~~~~~~~
@@ -122,6 +124,7 @@ Example
[include]
path = /path/to/foo.inc ; include by absolute path
path = foo ; expand "foo" relative to the current file
+ path = ~/foo ; expand "foo" in your $HOME directory
Variables
~~~~~~~~~