diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2018-09-29 19:32:51 +0100 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2018-11-05 15:53:59 +0000 |
| commit | 47cc5f85e9b95880e03cfa04d9708a643c587a13 (patch) | |
| tree | b475bd7e31ed7e8b56545cfaceb86c706054b95a /tests/apply/fromdiff.c | |
| parent | 398d8bfe606feddf8db738250fc1960887f53685 (diff) | |
| download | libgit2-47cc5f85e9b95880e03cfa04d9708a643c587a13.tar.gz | |
apply: introduce a hunk callback
Introduce a callback to patch application that allows consumers to
cancel hunk application.
Diffstat (limited to 'tests/apply/fromdiff.c')
| -rw-r--r-- | tests/apply/fromdiff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/apply/fromdiff.c b/tests/apply/fromdiff.c index 611060988..3b156025e 100644 --- a/tests/apply/fromdiff.c +++ b/tests/apply/fromdiff.c @@ -49,7 +49,7 @@ static int apply_gitbuf( cl_assert_equal_s(patch_expected, patchbuf.ptr); } - error = git_apply__patch(&result, &filename, &mode, old ? old->ptr : NULL, old ? old->size : 0, patch); + error = git_apply__patch(&result, &filename, &mode, old ? old->ptr : NULL, old ? old->size : 0, patch, NULL); if (error == 0 && new == NULL) { cl_assert_equal_i(0, result.size); |
