]> git.ipfire.org Git - thirdparty/git.git/commitdiff
git-config: fix misworded --type=path explanation
authorEvan Gates <evan.gates@gmail.com>
Fri, 15 Sep 2023 20:24:59 +0000 (14:24 -0600)
committerJunio C Hamano <gitster@pobox.com>
Fri, 15 Sep 2023 21:09:37 +0000 (14:09 -0700)
When `--type=<type>` was added as a prefered alias for `--<type>` by
fb0dc3bac1 (builtin/config.c: support `--type=<type>` as preferred
alias for `--<type>`), the explanation for the path type was
reworded.  Whereas the previous explanation said "expand a leading
`~`" this was changed to "adding a leading `~`".  Change "adding" to
"expanding" to correctly explain the canonicalization.

Signed-off-by: Evan Gates <evan.gates@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-config.txt

index 7a2bcb2f6cb6f94b677d47de49ae8c6d0b98f2b8..b1caac887ae2dc5ce683ab4c6d91eed849403afe 100644 (file)
@@ -201,7 +201,7 @@ Valid `<type>`'s include:
   1073741824 upon input.
 - 'bool-or-int': canonicalize according to either 'bool' or 'int', as described
   above.
-- 'path': canonicalize by adding a leading `~` to the value of `$HOME` and
+- 'path': canonicalize by expanding a leading `~` to the value of `$HOME` and
   `~user` to the home directory for the specified user. This specifier has no
   effect when setting the value (but you can use `git config section.variable
   ~/` from the command line to let your shell do the expansion.)