Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
real_path: clarify return value ownership
author
Han-Wen Nienhuys
<hanwen@google.com>
Tue, 26 Sep 2017 11:21:48 +0000
(13:21 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 27 Sep 2017 00:13:47 +0000
(09:13 +0900)
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
abspath.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
7451fcd
)
diff --git
a/abspath.c
b/abspath.c
index 708aff8d42c562112fe4076635af903c7f41fbaa..98579853299427ff906434fe56288a73b9d19b21 100644
(file)
--- a/
abspath.c
+++ b/
abspath.c
@@
-202,6
+202,10
@@
char *strbuf_realpath(struct strbuf *resolved, const char *path,
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;