diff options
author | Russell Belfer <arrbee@arrbee.com> | 2012-03-02 15:09:40 -0800 |
---|---|---|
committer | Russell Belfer <arrbee@arrbee.com> | 2012-03-02 15:09:40 -0800 |
commit | ce49c7a8a902bd3a74a59a356dd11886e83d2e92 (patch) | |
tree | e336ef425b5bda0e7c05acfbcf51fabb758ca662 /src/blob.c | |
parent | d377fe80b1396b82f8af7bfcd76f869410865001 (diff) | |
download | libgit2-ce49c7a8a902bd3a74a59a356dd11886e83d2e92.tar.gz |
Add filter tests and fix some bugs
This adds some initial unit tests for file filtering and fixes
some simple bugs in filter application.
Diffstat (limited to 'src/blob.c')
-rw-r--r-- | src/blob.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/blob.c b/src/blob.c index e1f4a7f6a..b67f8afa5 100644 --- a/src/blob.c +++ b/src/blob.c @@ -25,6 +25,12 @@ size_t git_blob_rawsize(git_blob *blob) return blob->odb_object->raw.len; } +int git_blob__getbuf(git_buf *buffer, git_blob *blob) +{ + return git_buf_set( + buffer, blob->odb_object->raw.data, blob->odb_object->raw.len); +} + void git_blob__free(git_blob *blob) { git_odb_object_free(blob->odb_object); |