diff options
author | Han-Wen Nienhuys <hanwen@google.com> | 2017-09-26 14:21:48 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-09-27 03:13:47 +0300 |
commit | d83d846e84d6ba6c7c4221d2681dfde820949362 (patch) | |
tree | 419e19a5f114d409897f616929020e9cf0e74a8f /abspath.c | |
parent | 7451fcdc0d3cffdb9aa79d2651830b44a8e052d6 (diff) |
real_path: clarify return value ownership
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'abspath.c')
-rw-r--r-- | abspath.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |