libgit2

git_annotated_commit_ref

Version:

Get the refname that the given git_annotated_commit refers to.

Signature

const char *git_annotated_commit_ref(const git_annotated_commit *commit);

Parameters

In
commit

the given annotated commit

Returns

const char *

ref name.

Versions