libgit2

git_stash_apply_init_options

Version:

Initializes a git_stash_apply_options with default values. Equivalent to creating an instance with GIT_STASH_APPLY_OPTIONS_INIT.

Signature

int git_stash_apply_init_options(git_stash_apply_options *opts, unsigned int version);

Parameters

In
opts

the git_stash_apply_options instance to initialize.

unsigned int
In
version

the version of the struct; you should pass GIT_STASH_APPLY_OPTIONS_INIT here.

Returns

int

Zero on success; -1 on failure.

Versions