libgit2

git_rebase_init_options

Version:

Initializes a git_rebase_options with default values. Equivalent to creating an instance with GIT_REBASE_OPTIONS_INIT.

Signature

int git_rebase_init_options(git_rebase_options *opts, unsigned int version);

Parameters

In
opts

the git_rebase_options instance to initialize.

unsigned int
In
version

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

Returns

int

Zero on success; -1 on failure.

Versions