libgit2

git_reference_oid

Version:

Get the OID pointed to by a reference.

Only available if the reference is direct (i.e. not symbolic)

Signature

const git_oid *git_reference_oid(git_reference *ref);

Parameters

In
ref

The reference

Returns

a pointer to the oid if available, NULL otherwise

Versions