Skip to content

Commit d83d846

Browse files
hanwengitster
authored andcommitted
real_path: clarify return value ownership
Signed-off-by: Han-Wen Nienhuys <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7451fcd commit d83d846

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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)