libgit2

git_describe_init_format_options

Version:

Initialize git_describe_format_options structure

Initializes a git_describe_format_options with default values. Equivalent to creating an instance with GIT_DESCRIBE_FORMAT_OPTIONS_INIT.

Signature

int git_describe_init_format_options(git_describe_format_options *opts, unsigned int version);

Parameters

unsigned int
In
version

The struct version; pass GIT_DESCRIBE_FORMAT_OPTIONS_VERSION.

Returns

int

Zero on success; -1 on failure.

Versions