libgit2

git_describe_commit

Version:

Describe a commit

Perform the describe operation on the given committish object.

Signature

int git_describe_commit(git_describe_result **result, git_object *committish, git_describe_options *opts);

Parameters

In
result

pointer to store the result. You must free this once you're done with it.

In
committish

a committish to describe

In
opts

the lookup options (or NULL for defaults)

Returns

int

0 or an error code.

Versions