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 /tests-clar/object
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 'tests-clar/object')
-rw-r--r--tests-clar/object/blob/filter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests-clar/object/blob/filter.c b/tests-clar/object/blob/filter.c
index 1e82b69cd..6dc7800db 100644
--- a/tests-clar/object/blob/filter.c
+++ b/tests-clar/object/blob/filter.c
@@ -104,7 +104,7 @@ void test_object_blob_filter__to_odb(void)
git_config *cfg;
int i;
git_blob *blob;
- git_buffer out = GIT_BUFFER_INIT;
+ git_buf out = GIT_BUF_INIT;
cl_git_pass(git_repository_config(&cfg, g_repo));
cl_assert(cfg);
@@ -129,7 +129,7 @@ void test_object_blob_filter__to_odb(void)
}
git_filter_list_free(fl);
- git_buffer_free(&out);
+ git_buf_free(&out);
git_config_free(cfg);
}