diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2017-04-05 17:24:38 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-04-14 23:51:38 -0700 |
commit | 4aad2f1627bb74948874c0f31e8ce256bf236aa6 (patch) | |
tree | de6b04a3b94f2d709971e878375168120e4fa359 /cache.h | |
parent | 3efd0bedc6625a6b194c1f6e5f1b7aa7d8b7e6bb (diff) | |
download | git-4aad2f1627bb74948874c0f31e8ce256bf236aa6.tar.gz git-4aad2f1627bb74948874c0f31e8ce256bf236aa6.tar.xz |
path.c: and an option to call real_path() in expand_user_path()
In the next patch we need the ability to expand '~' to
real_path($HOME). But we can't do that from outside because '~' is part
of a pattern, not a true path. Add an option to expand_user_path() to do
so.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1098,7 +1098,7 @@ enum scld_error safe_create_leading_directories(char *path); enum scld_error safe_create_leading_directories_const(const char *path); int mkdir_in_gitdir(const char *path); -extern char *expand_user_path(const char *path); +extern char *expand_user_path(const char *path, int real_home); const char *enter_repo(const char *path, int strict); static inline int is_absolute_path(const char *path) { |