libgit2

git_push_init_options

Version:

Initializes a git_push_options with default values. Equivalent to creating an instance with GIT_PUSH_OPTIONS_INIT.

Signature

int git_push_init_options(git_push_options *opts, unsigned int version);

Parameters

In
opts

the git_push_options instance to initialize.

unsigned int
In
version

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

Returns

int

Zero on success; -1 on failure.

Versions