Re: [PATCH v2 3/4] real_path: create real_pathdup

2016-12-09 Thread Johannes Sixt
Am 09.12.2016 um 00:58 schrieb Brandon Williams: +char *real_pathdup(const char *path) +{ + struct strbuf realpath = STRBUF_INIT; + char *retval = NULL; + + if(strbuf_realpath(, path, 0)) Style nit: blank after if is missing. -- Hannes

[PATCH v2 3/4] real_path: create real_pathdup

2016-12-08 Thread Brandon Williams
Create real_pathdup which returns a caller owned string of the resolved realpath based on the provide path. Signed-off-by: Brandon Williams --- abspath.c | 13 + cache.h | 1 + 2 files changed, 14 insertions(+) diff --git a/abspath.c b/abspath.c index