summaryrefslogtreecommitdiff
path: root/tests/patch/print.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2015-09-23 13:40:12 -0400
committerEdward Thomson <ethomson@github.com>2016-05-26 13:01:06 -0500
commit82175084e17d31051e691ebdcb5990a12d0230e7 (patch)
tree07f65363bdf7c3dc0a667cf41f20d3ffca34ecaf /tests/patch/print.c
parent19e46645af31b594514cdf88e0ff037e15f39b9b (diff)
downloadlibgit2-82175084e17d31051e691ebdcb5990a12d0230e7.tar.gz
Introduce git_patch_options, handle prefixes
Handle prefixes (in terms of number of path components) for patch parsing.
Diffstat (limited to 'tests/patch/print.c')
-rw-r--r--tests/patch/print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/patch/print.c b/tests/patch/print.c
index 9bfc5f0eb..a07328fa8 100644
--- a/tests/patch/print.c
+++ b/tests/patch/print.c
@@ -12,7 +12,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));
+ cl_git_pass(git_patch_from_patchfile(&patch, data, len, NULL));
cl_git_pass(git_patch_to_buf(&buf, patch));
cl_assert_equal_s(data, buf.ptr);