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/print.c | |
parent | 00e63b36202be18b1dd1690049f8cbb755132f1b (diff) | |
download | libgit2-440e3bae10a4758d5de8d7b8699bf4c412c1a163.tar.gz |
patch: `git_patch_from_patchfile` -> `git_patch_from_buffer`
Diffstat (limited to 'tests/patch/print.c')
-rw-r--r-- | tests/patch/print.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |