libgit2

git_reference_target_peel

Version:

Return the peeled OID target of this reference.

This peeled OID only applies to direct references that point to a hard Tag object: it is the result of peeling such Tag.

Signature

const git_oid *git_reference_target_peel(const git_reference *ref);

Parameters

In
ref

The reference

Returns

a pointer to the oid if available, NULL otherwise

Versions