Skip to content

Commit d83d846

Browse files
hanwengitster
authored andcommitted
real_path: clarify return value ownership
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 7451fcd commit d83d846

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

abspath.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,10 @@ char *strbuf_realpath(struct strbuf *resolved, const char *path,
202202
return retval;
203203
}
204204

205+
/*
206+
* Resolve `path` into an absolute, cleaned-up path. The return value
207+
* comes from a shared buffer.
208+
*/
205209
const char *real_path(const char *path)
206210
{
207211
static struct strbuf realpath = STRBUF_INIT;

0 commit comments

Comments
 (0)