aboutsummaryrefslogtreecommitdiff
path: root/abspath.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-10-03 15:42:48 +0900
committerJunio C Hamano <gitster@pobox.com>2017-10-03 15:42:48 +0900
commit9de7ae63c53ae050f7061d451174a489fa51c80f (patch)
tree399b0fca26899b2eb8ddfb68f081098db0ae5af5 /abspath.c
parent2f777fad342e5a12cc910516ba575db4c3e4e53a (diff)
parentea1d87560c5d66396d1785a208783cbf7a1651c2 (diff)
downloadgit-9de7ae63c53ae050f7061d451174a489fa51c80f.tar.gz
git-9de7ae63c53ae050f7061d451174a489fa51c80f.tar.xz
Merge branch 'hn/path-ownership-comment'
Add comment to a few functions that use a short-lived buffer the caller can peek and copy out of. * hn/path-ownership-comment: read_gitfile_gently: clarify return value ownership. real_path: clarify return value ownership
Diffstat (limited to 'abspath.c')
-rw-r--r--abspath.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/abspath.c b/abspath.c
index 708aff8d4..985798532 100644
--- a/abspath.c
+++ b/abspath.c
@@ -202,6 +202,10 @@ error_out:
return retval;
}
+/*
+ * Resolve `path` into an absolute, cleaned-up path. The return value
+ * comes from a shared buffer.
+ */
const char *real_path(const char *path)
{
static struct strbuf realpath = STRBUF_INIT;