builtin-config: add --path option doing ~ and ~user expansion.
commit1349484e341a3ec2ba02a86c8fbd97ea9dc8c756
authorMatthieu Moy <Matthieu.Moy@imag.fr>
Wed, 30 Dec 2009 16:51:53 +0000 (30 17:51 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 31 Dec 2009 20:19:38 +0000 (31 12:19 -0800)
tree5c2d753daa7234da64de974c1badcc4973b35e79
parent902f235378cb2b2f6dd5dd664b9630c95321f0ae
builtin-config: add --path option doing ~ and ~user expansion.

395de250 (Expand ~ and ~user in core.excludesfile, commit.template)
introduced a C function git_config_pathname, doing ~/ and ~user/
expansion. This patch makes the feature available to scripts with 'git
config --get --path'.

Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-config.txt
builtin-config.c
t/t1300-repo-config.sh