At a tiny cost of 1 extra byte per allocation, this makes git_buf_cstr into basically a noop, which simplifies error checking when trying to convert things to use dynamic allocation. This patch also adds a new function (git_buf_copy_cstr) for copying the cstr data directly into an external buffer.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
buffer.c | Loading commit data... | |
dirent.c | Loading commit data... | |
filebuf.c | Loading commit data... | |
oid.c | Loading commit data... | |
path.c | Loading commit data... | |
rmdir.c | Loading commit data... | |
string.c | Loading commit data... | |
strtol.c | Loading commit data... | |
vector.c | Loading commit data... |