summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-01-10 16:52:41 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-01-10 16:52:41 (GMT)
commit9c787f3f88f077ad23498cf03b1b57ac3bd41b33 (patch)
treec559f25a5ea815eb59e77ff56bedfbada07a9e1d /Documentation
parentdf248216fd0602e06d3b441e46efa6c74b94d081 (diff)
parent1349484e341a3ec2ba02a86c8fbd97ea9dc8c756 (diff)
downloadgit-9c787f3f88f077ad23498cf03b1b57ac3bd41b33.zip
git-9c787f3f88f077ad23498cf03b1b57ac3bd41b33.tar.gz
git-9c787f3f88f077ad23498cf03b1b57ac3bd41b33.tar.bz2
Merge branch 'mm/config-path'
* mm/config-path: builtin-config: add --path option doing ~ and ~user expansion.
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-config.txt14
1 files changed, 11 insertions, 3 deletions
diff --git a/Documentation/git-config.txt b/Documentation/git-config.txt
index f68b198..2632928 100644
--- a/Documentation/git-config.txt
+++ b/Documentation/git-config.txt
@@ -37,11 +37,12 @@ existing values that match the regexp are updated or unset. If
you want to handle the lines that do *not* match the regex, just
prepend a single exclamation mark in front (see also <<EXAMPLES>>).
-The type specifier can be either '--int' or '--bool', which will make
+The type specifier can be either '--int' or '--bool', to make
'git-config' ensure that the variable(s) are of the given type and
convert the value to the canonical form (simple decimal number for int,
-a "true" or "false" string for bool). If no type specifier is passed,
-no checks or transformations are performed on the value.
+a "true" or "false" string for bool), or '--path', which does some
+path expansion (see '--path' below). If no type specifier is passed, no
+checks or transformations are performed on the value.
The file-option can be one of '--system', '--global' or '--file'
which specify where the values will be read from or written to.
@@ -136,6 +137,13 @@ See also <<FILES>>.
'git-config' will ensure that the output matches the format of
either --bool or --int, as described above.
+--path::
+ 'git-config' will expand leading '{tilde}' to the value of
+ '$HOME', and '{tilde}user' to the home directory for the
+ specified user. This option has no effect when setting the
+ value (but you can use 'git config bla {tilde}/' from the
+ command line to let your shell do the expansion).
+
-z::
--null::
For all options that output values and/or keys, always