diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2021-07-24 22:06:52 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-07-26 12:17:16 -0700 |
commit | a03b097d6307763c6778f5a1f194fbcbd158a5f7 (patch) | |
tree | 64e20e92d5b74c31ed5cd324b95545cf220ba12e /builtin/credential-store.c | |
parent | expand_user_path(): clarify the role of the `real_home` parameter (diff) | |
download | tgif-a03b097d6307763c6778f5a1f194fbcbd158a5f7.tar.xz |
Use a better name for the function interpolating paths
It is not immediately clear what `expand_user_path()` means, so let's
rename it to `interpolate_path()`. This also opens the path for
interpolating more than just a home directory.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/credential-store.c')
-rw-r--r-- | builtin/credential-store.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/credential-store.c b/builtin/credential-store.c index ae3c1ba75f..62a4f3c265 100644 --- a/builtin/credential-store.c +++ b/builtin/credential-store.c @@ -173,7 +173,7 @@ int cmd_credential_store(int argc, const char **argv, const char *prefix) if (file) { string_list_append(&fns, file); } else { - if ((file = expand_user_path("~/.git-credentials", 0))) + if ((file = interpolate_path("~/.git-credentials", 0))) string_list_append_nodup(&fns, file); file = xdg_config_home("credentials"); if (file) |