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 /src/apply.c | |
parent | 0b5ba0d744e69da5dc8c08d167c83dd87ed83af2 (diff) | |
download | libgit2-ethomson/opts_init.tar.gz |
apply: add an options struct initializerethomson/opts_init
Diffstat (limited to 'src/apply.c')
-rw-r--r-- | src/apply.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/apply.c b/src/apply.c index 156221f17..fdafa662e 100644 --- a/src/apply.c +++ b/src/apply.c @@ -745,6 +745,13 @@ done: return error; } +int git_apply_options_init(git_apply_options *opts, unsigned int version) +{ + GIT_INIT_STRUCTURE_FROM_TEMPLATE( + opts, version, git_apply_options, GIT_APPLY_OPTIONS_INIT); + return 0; +} + /* * Handle the three application options ("locations"): * |