THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Browse Source

real_path: clarify return value ownership

Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
tags/v2.15.0-rc0
Han-Wen Nienhuys Junio C Hamano 2 years ago
parent
commit
d83d846e84
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      abspath.c

+ 4
- 0
abspath.c View File

@@ -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;


Loading…
Cancel
Save