libgit2/tests-clay/core
Russell Belfer 97769280ba Use git_buf for path storage instead of stack-based buffers
This converts virtually all of the places that allocate GIT_PATH_MAX
buffers on the stack for manipulating paths to use git_buf objects
instead.  The patch is pretty careful not to touch the public API
for libgit2, so there are a few places that still use GIT_PATH_MAX.

This extends and changes some details of the git_buf implementation
to add a couple of extra functions and to make error handling easier.

This includes serious alterations to all the path.c functions, and
several of the fileops.c ones, too.  Also, there are a number of new
functions that parallel existing ones except that use a git_buf
instead of a stack-based buffer (such as git_config_find_global_r
that exists alongsize git_config_find_global).

This also modifies the win32 version of p_realpath to allocate whatever
buffer size is needed to accommodate the realpath instead of hardcoding
a GIT_PATH_MAX limit, but that change needs to be tested still.
2011-12-07 23:08:15 -08:00
..
buffer.c Use git_buf for path storage instead of stack-based buffers 2011-12-07 23:08:15 -08:00
dirent.c Use git_buf for path storage instead of stack-based buffers 2011-12-07 23:08:15 -08:00
filebuf.c filebuf: add GIT_FILEBUF_INIT and protect multiple opens and cleanups 2011-11-22 01:53:56 +01:00
oid.c oid: Add git_oid_streq() which checks if an oid and an hex formatted string are equal 2011-10-13 23:15:11 +02:00
path.c Use git_buf for path storage instead of stack-based buffers 2011-12-07 23:08:15 -08:00
rmdir.c Use git_buf for path storage instead of stack-based buffers 2011-12-07 23:08:15 -08:00
string.c Come out and Clay 2011-09-15 01:12:46 +02:00
strtol.c tests-clay: update clay 2011-10-07 23:02:02 +02:00
vector.c global: Properly use git__ memory wrappers 2011-10-28 19:02:36 -07:00