diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2019-06-06 16:48:04 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2019-06-14 09:57:01 +0100 |
commit | c0dd7122da182517e77d1dde6f737dc9d0d0f28a (patch) | |
tree | 1ff8ea964e9a399c765d63eb4951418a789727e8 /include | |
parent | 0b5ba0d744e69da5dc8c08d167c83dd87ed83af2 (diff) | |
download | libgit2-c0dd7122da182517e77d1dde6f737dc9d0d0f28a.tar.gz |
apply: add an options struct initializerethomson/opts_init
Diffstat (limited to 'include')
-rw-r--r-- | include/git2/apply.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/git2/apply.h b/include/git2/apply.h index 91f93d75d..384e11718 100644 --- a/include/git2/apply.h +++ b/include/git2/apply.h @@ -57,7 +57,7 @@ typedef int GIT_CALLBACK(git_apply_hunk_cb)( * Apply options structure * * Initialize with `GIT_APPLY_OPTIONS_INIT`. Alternatively, you can - * use `git_apply_init_options`. + * use `git_apply_options_init`. * * @see git_apply_to_tree, git_apply */ @@ -72,6 +72,8 @@ typedef struct { #define GIT_APPLY_OPTIONS_VERSION 1 #define GIT_APPLY_OPTIONS_INIT {GIT_APPLY_OPTIONS_VERSION} +GIT_EXTERN(int) git_apply_options_init(git_apply_options *opts, unsigned int version); + /** * Apply a `git_diff` to a `git_tree`, and return the resulting image * as an index. |