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 /src/apply.h | |
| 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 'src/apply.h')
| -rw-r--r-- | src/apply.h | 4 |
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 |
