Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-09-12 09:00:36 +0400
committerRussell Belfer <rb@github.com>2013-09-17 20:31:45 +0400
commita9f51e430fef49b3299ec33c11a4e6623e3f58cc (patch)
treea3162a8bcf71628f0750d5560923e7783be38eca /src/blob.c
parent4b11f25a4fbb6952284e037a70e2d61fde841ab6 (diff)
Merge git_buf and git_buffer
This makes the git_buf struct that was used internally into an externally available structure and eliminates the git_buffer. As part of that, some of the special cases that arose with the externally used git_buffer were blended into the git_buf, such as being careful about git_buf objects that may have a NULL ptr and allowing for bufs with a valid ptr and size but zero asize as a way of referring to externally owned data.
Diffstat (limited to 'src/blob.c')
-rw-r--r--src/blob.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/blob.c b/src/blob.c
index 97fd6f70d..e18db4dfc 100644
--- a/src/blob.c
+++ b/src/blob.c
@@ -111,7 +111,7 @@ static int write_file_filtered(
git_filter_list *fl)
{
int error;
- git_buffer tgt = GIT_BUFFER_INIT;
+ git_buf tgt = GIT_BUF_INIT;
error = git_filter_list_apply_to_file(&tgt, fl, NULL, full_path);
@@ -122,7 +122,7 @@ static int write_file_filtered(
error = git_odb_write(oid, odb, tgt.ptr, tgt.size, GIT_OBJ_BLOB);
}
- git_buffer_free(&tgt);
+ git_buf_free(&tgt);
return error;
}
@@ -329,7 +329,7 @@ int git_blob_is_binary(git_blob *blob)
}
int git_blob_filtered_content(
- git_buffer *out,
+ git_buf *out,
git_blob *blob,
const char *path,
int check_for_binary_data)