aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2016-12-12 10:16:54 -0800
committerJunio C Hamano <gitster@pobox.com>2016-12-12 15:22:32 -0800
commit72417640769c91408d15cdbab3160bc494f49c7f (patch)
tree0fb36a529a18a71a5690fcb01887c7c7d2067039 /cache.h
parenta1ae48410dce23c1e81e76aabaeb4eb01b065763 (diff)
downloadgit-72417640769c91408d15cdbab3160bc494f49c7f.tar.gz
git-72417640769c91408d15cdbab3160bc494f49c7f.tar.xz
real_path: create real_pathdup
Create real_pathdup which returns a caller owned string of the resolved realpath based on the provide path. Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 7a8129403..e12a5d912 100644
--- a/cache.h
+++ b/cache.h
@@ -1068,6 +1068,7 @@ char *strbuf_realpath(struct strbuf *resolved, const char *path,
int die_on_error);
const char *real_path(const char *path);
const char *real_path_if_valid(const char *path);
+char *real_pathdup(const char *path);
const char *absolute_path(const char *path);
const char *remove_leading_path(const char *in, const char *prefix);
const char *relative_path(const char *in, const char *prefix, struct strbuf *sb);