]> git.ipfire.org Git - thirdparty/git.git/commit - abspath.c
real_path: convert real_path_internal to strbuf_realpath
authorBrandon Williams <bmwill@google.com>
Mon, 12 Dec 2016 18:16:53 +0000 (10:16 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Dec 2016 23:22:32 +0000 (15:22 -0800)
commita1ae48410dce23c1e81e76aabaeb4eb01b065763
tree89bb3be2d33464d8817e39d6b9be11d520db0993
parent05b458c104708141d2fad211d79703b3b99cc5a8
real_path: convert real_path_internal to strbuf_realpath

Change the name of real_path_internal to strbuf_realpath.  In addition
push the static strbuf up to its callers and instead take as a
parameter a pointer to a strbuf to use for the final result.

This change makes strbuf_realpath reentrant.

Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
abspath.c
cache.h