mirror of
https://github.com/git/git.git
synced 2024-05-14 03:26:31 +02:00
real_path: clarify return value ownership
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
7451fcdc0d
commit
d83d846e84
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue