libgit2

git_describe_format

Version:

Print the describe result to a buffer

Signature

int git_describe_format(git_buf *out, const git_describe_result *result, const git_describe_format_options *opts);

Parameters

In
out

The buffer to store the result

In
result

the result from git_describe_commit() or git_describe_workdir().

In
opts

the formatting options (or NULL for defaults)

Returns

int

Versions