git-config: fix misworded --type=path explanation
PATCH 1/1 git-config: fix misworded --type=path explanation
When --type=<type> was added as a prefered 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.
---
Turns out --type=path is exactly what I had been looking for, but it took some experimentation as I found the documentation confusing. In hindsight it's obvious, but I hope this simple fix helps someone else figure it out faster in the future.
Documentation/git-config.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/git-config.txt +1 -1
@@ -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.)
Signature · 1 line
2.42.0
Quoted 5 lines · Evan Gates
When
--type=<type>was added as a prefered 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.
Yeah, the sentence as-is does not make any sense. Your suggested wording looks good to me. Thanks.
-Peff
Quoted 5 lines · Evan Gates
When
--type=<type>was added as a prefered 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.
Nice spotting (and good archaeology, too).
Thanks.