home_config_paths(): let the caller ignore xdg path
commit06b2d87244d74a6b084a08677dfd66d58b94ebfa
authorMatthieu Moy <Matthieu.Moy@imag.fr>
Fri, 25 Jul 2014 19:11:35 +0000 (25 21:11 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 25 Jul 2014 19:23:08 +0000 (25 12:23 -0700)
tree23cc9fb79f5d5252418402269c663d9b9164cc7f
parent9830534e40bd15231357965441d4fe02a6a4810e
home_config_paths(): let the caller ignore xdg path

The caller can signal that it is not interested in learning
the location of $HOME/.gitconfig by passing global=NULL, but
there is no way to decline the path to the configuration
file based on $XDG_CONFIG_HOME.

Allow the caller to pass xdg=NULL to signal that it is not
interested in the XDG location.

Commit-message-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
path.c