diff options
author | Russell Belfer <arrbee@arrbee.com> | 2011-11-29 16:39:49 -0800 |
---|---|---|
committer | Russell Belfer <arrbee@arrbee.com> | 2011-11-29 16:39:49 -0800 |
commit | c63728cd73c14093665880b26505418581d7a29a (patch) | |
tree | dbb5b0645b57324310c1fde7436832663b5a72b4 /src/commit.c | |
parent | fc88a8d321541165b52d2cdb27753bab76870321 (diff) | |
download | libgit2-c63728cd73c14093665880b26505418581d7a29a.tar.gz |
Make git_buf functions always maintain a valid cstr.
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.
Diffstat (limited to 'src/commit.c')
0 files changed, 0 insertions, 0 deletions