]> git.ipfire.org Git - thirdparty/git.git/commit - strbuf.c
abspath: convert absolute_path() to strbuf
authorRené Scharfe <l.s.r@web.de>
Mon, 28 Jul 2014 18:33:55 +0000 (20:33 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 26 Aug 2014 18:06:06 +0000 (11:06 -0700)
commit679eebe24d4c2120f8c01fb4524fcc489718fc9c
tree0dffe663fbce093ec9c07ab1c621b3d143995db3
parent4d3ab44d26c47d100cec39d0ef9ed9746eb7e454
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