libgit2

git_diff_format_email_init_options

Version:

Initializes a git_diff_format_email_options with default values.

Equivalent to creating an instance with GIT_DIFF_FORMAT_EMAIL_OPTIONS_INIT.

Signature

int git_diff_format_email_init_options(git_diff_format_email_options *opts, unsigned int version);

Parameters

unsigned int
In
version

Version of struct; pass GIT_DIFF_FORMAT_EMAIL_OPTIONS_VERSION

Returns

int

Zero on success; -1 on failure.

Versions