diff options
| author | punkymaniac <punkymaniac@protonmail.ch> | 2021-11-26 12:50:40 +0100 |
|---|---|---|
| committer | punkymaniac <punkymaniac@protonmail.ch> | 2022-01-09 10:17:50 +0100 |
| commit | f8b26df34fa804a6495012384e3bdab1f5223d9a (patch) | |
| tree | f27b305282dfe0f4fbd0e2bde4f6d659b3d7d3e1 /include | |
| parent | e2e3f3e4cde7871f86eabacc6a639439b70a8fc7 (diff) | |
| download | libgit2-f8b26df34fa804a6495012384e3bdab1f5223d9a.tar.gz | |
Add `git_apply_options_init` documentation
Diffstat (limited to 'include')
| -rw-r--r-- | include/git2/apply.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/git2/apply.h b/include/git2/apply.h index 814bc8f16..0aa2b24e6 100644 --- a/include/git2/apply.h +++ b/include/git2/apply.h @@ -89,6 +89,16 @@ typedef struct { #define GIT_APPLY_OPTIONS_VERSION 1 #define GIT_APPLY_OPTIONS_INIT {GIT_APPLY_OPTIONS_VERSION} +/** + * Initialize git_apply_options structure + * + * Initialize a `git_apply_options` with default values. Equivalent to creating + * an instance with GIT_APPLY_OPTIONS_INIT. + * + * @param opts The `git_apply_options` struct to initialize. + * @param version The struct version; pass `GIT_APPLY_OPTIONS_VERSION` + * @return 0 on success or -1 on failure. + */ GIT_EXTERN(int) git_apply_options_init(git_apply_options *opts, unsigned int version); /** |
