summaryrefslogtreecommitdiff
path: root/Documentation/technical
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2014-07-28 18:33:55 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-08-26 18:06:06 (GMT)
commit679eebe24d4c2120f8c01fb4524fcc489718fc9c (patch)
tree0dffe663fbce093ec9c07ab1c621b3d143995db3 /Documentation/technical
parent4d3ab44d26c47d100cec39d0ef9ed9746eb7e454 (diff)
downloadgit-679eebe24d4c2120f8c01fb4524fcc489718fc9c.zip
git-679eebe24d4c2120f8c01fb4524fcc489718fc9c.tar.gz
git-679eebe24d4c2120f8c01fb4524fcc489718fc9c.tar.bz2
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>
Diffstat (limited to 'Documentation/technical')
-rw-r--r--Documentation/technical/api-strbuf.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/technical/api-strbuf.txt b/Documentation/technical/api-strbuf.txt
index 834c406..1639a4a 100644
--- a/Documentation/technical/api-strbuf.txt
+++ b/Documentation/technical/api-strbuf.txt
@@ -293,6 +293,12 @@ same behaviour as well.
Set the buffer to the path of the current working directory.
+`strbuf_add_absolute_path`
+
+ Add a path to a buffer, converting a relative path to an
+ absolute one in the process. Symbolic links are not
+ resolved.
+
`stripspace`::
Strip whitespace from a buffer. The second parameter controls if