summaryrefslogtreecommitdiff
path: root/src/apply.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2018-09-29 19:32:51 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2018-11-05 15:53:59 +0000
commit47cc5f85e9b95880e03cfa04d9708a643c587a13 (patch)
treeb475bd7e31ed7e8b56545cfaceb86c706054b95a /src/apply.h
parent398d8bfe606feddf8db738250fc1960887f53685 (diff)
downloadlibgit2-47cc5f85e9b95880e03cfa04d9708a643c587a13.tar.gz
apply: introduce a hunk callback
Introduce a callback to patch application that allows consumers to cancel hunk application.
Diffstat (limited to 'src/apply.h')
-rw-r--r--src/apply.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/apply.h b/src/apply.h
index b29460c0b..11ec75637 100644
--- a/src/apply.h
+++ b/src/apply.h
@@ -10,6 +10,7 @@
#include "common.h"
#include "git2/patch.h"
+#include "git2/apply.h"
#include "buffer.h"
extern int git_apply__patch(
@@ -18,6 +19,7 @@ extern int git_apply__patch(
unsigned int *mode,
const char *source,
size_t source_len,
- git_patch *patch);
+ git_patch *patch,
+ const git_apply_options *opts);
#endif