libgit2

git_blame_init_options

Version:

Initializes a git_blame_options with default values. Equivalent to creating an instance with GIT_BLAME_OPTIONS_INIT.

Signature

int git_blame_init_options(git_blame_options *opts, unsigned int version);

Parameters

In
opts

The git_blame_options struct to initialize

unsigned int
In
version

Version of struct; pass GIT_BLAME_OPTIONS_VERSION

Returns

int

Zero on success; -1 on failure.

Versions