From: Paul Tan Date: Wed, 6 May 2015 08:01:01 +0000 (+0800) Subject: credential-store.c: replace home_config_paths() with xdg_config_home() X-Git-Tag: v2.4.3~25^2~3 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/64ab71db3a7e5b41a37580f8a3d15cb25b3e7093 credential-store.c: replace home_config_paths() with xdg_config_home() Since only the xdg credentials file path is required, and home_config_paths() is unable to construct the path ~/.git-credentials, simplify the code by replacing home_config_paths() with xdg_config_home(). Signed-off-by: Paul Tan Signed-off-by: Junio C Hamano --- diff --git a/credential-store.c b/credential-store.c index d62dc29d06..8ebfb97c7f 100644 --- a/credential-store.c +++ b/credential-store.c @@ -170,7 +170,7 @@ int main(int argc, char **argv) } else { if ((file = expand_user_path("~/.git-credentials"))) string_list_append_nodup(&fns, file); - home_config_paths(NULL, &file, "credentials"); + file = xdg_config_home("credentials"); if (file) string_list_append_nodup(&fns, file); }