Skip to content

Commit f8b26df

Browse files
committed
Add git_apply_options_init documentation
1 parent e2e3f3e commit f8b26df

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

include/git2/apply.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,16 @@ typedef struct {
8989
#define GIT_APPLY_OPTIONS_VERSION 1
9090
#define GIT_APPLY_OPTIONS_INIT {GIT_APPLY_OPTIONS_VERSION}
9191

92+
/**
93+
* Initialize git_apply_options structure
94+
*
95+
* Initialize a `git_apply_options` with default values. Equivalent to creating
96+
* an instance with GIT_APPLY_OPTIONS_INIT.
97+
*
98+
* @param opts The `git_apply_options` struct to initialize.
99+
* @param version The struct version; pass `GIT_APPLY_OPTIONS_VERSION`
100+
* @return 0 on success or -1 on failure.
101+
*/
92102
GIT_EXTERN(int) git_apply_options_init(git_apply_options *opts, unsigned int version);
93103

94104
/**

0 commit comments

Comments
 (0)