diff options
author | joshaber <joshaber@gmail.com> | 2014-07-16 13:34:25 -0700 |
---|---|---|
committer | joshaber <joshaber@gmail.com> | 2014-07-16 13:34:25 -0700 |
commit | b3af2d80d2d6393dada89c713baff9b3eba49a01 (patch) | |
tree | ee90407f88e1a54b509f6f89b46288a57a316ac5 /src/buffer.c | |
parent | df4cba0f2860f35ddea03e09d40ec27b9717db70 (diff) | |
download | libgit2-b3af2d80d2d6393dada89c713baff9b3eba49a01.tar.gz |
Just put it all in buffer.
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c index b8f8660ed..1bee9d70b 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -7,6 +7,7 @@ #include "buffer.h" #include "posix.h" #include "git2/buffer.h" +#include "buf_text.h" #include <ctype.h> /* Used as default value for git_buf->ptr so that people can always @@ -141,6 +142,16 @@ int git_buf_set(git_buf *buf, const void *data, size_t len) return 0; } +int git_buf_is_binary(const git_buf *buf) +{ + return git_buf_text_is_binary(buf); +} + +int git_buf_contains_nul(const git_buf *buf) +{ + return git_buf_text_contains_nul(buf); +} + int git_buf_sets(git_buf *buf, const char *string) { return git_buf_set(buf, string, string ? strlen(string) : 0); |