abspath: convert absolute_path() to strbuf
commitdf323acc030f8b148a30a2c6ab546f26ba139228
authorRené Scharfe <l.s.r@web.de>
Mon, 28 Jul 2014 18:33:55 +0000 (28 20:33 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 29 Jul 2014 19:17:53 +0000 (29 12:17 -0700)
tree7c029775ac69ba38d2a4cb82402abb60df90a6ef
parent999eb0156c5bb6cb79c91704fdbe2284bf1cd89e
abspath: convert absolute_path() to strbuf

Move most of the code of absolute_path() into the new function
strbuf_add_absolute_path() and in the process transform it to use
struct strbuf and xgetcwd() instead of a PATH_MAX-sized buffer,
which can be too small on some file systems.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/technical/api-strbuf.txt
abspath.c
strbuf.c
strbuf.h