diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2015-11-21 12:27:03 -0500 |
|---|---|---|
| committer | Edward Thomson <ethomson@github.com> | 2016-05-26 13:01:08 -0500 |
| commit | 440e3bae10a4758d5de8d7b8699bf4c412c1a163 (patch) | |
| tree | 281ea92c4e39070bab916650ef06129ce876afc0 /tests/patch | |
| parent | 00e63b36202be18b1dd1690049f8cbb755132f1b (diff) | |
| download | libgit2-440e3bae10a4758d5de8d7b8699bf4c412c1a163.tar.gz | |
patch: `git_patch_from_patchfile` -> `git_patch_from_buffer`
Diffstat (limited to 'tests/patch')
| -rw-r--r-- | tests/patch/parse.c | 3 | ||||
| -rw-r--r-- | tests/patch/print.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/patch/parse.c b/tests/patch/parse.c index 28f61ffcd..88cdbf6d7 100644 --- a/tests/patch/parse.c +++ b/tests/patch/parse.c @@ -1,4 +1,5 @@ #include "clar_libgit2.h" +#include "patch.h" #include "patch_common.h" @@ -8,7 +9,7 @@ void test_patch_parse__original_to_change_middle(void) const git_diff_delta *delta; char idstr[GIT_OID_HEXSZ+1] = {0}; - cl_git_pass(git_patch_from_patchfile( + cl_git_pass(git_patch_from_buffer( &patch, PATCH_ORIGINAL_TO_CHANGE_MIDDLE, strlen(PATCH_ORIGINAL_TO_CHANGE_MIDDLE), NULL)); diff --git a/tests/patch/print.c b/tests/patch/print.c index a07328fa8..047b48e8f 100644 --- a/tests/patch/print.c +++ b/tests/patch/print.c @@ -1,4 +1,5 @@ #include "clar_libgit2.h" +#include "patch.h" #include "patch_common.h" @@ -12,7 +13,7 @@ void patch_print_from_patchfile(const char *data, size_t len) git_patch *patch; git_buf buf = GIT_BUF_INIT; - cl_git_pass(git_patch_from_patchfile(&patch, data, len, NULL)); + cl_git_pass(git_patch_from_buffer(&patch, data, len, NULL)); cl_git_pass(git_patch_to_buf(&buf, patch)); cl_assert_equal_s(data, buf.ptr); |
