libgit2

git_reference_type

Version:

Get the type of a reference.

Either direct (GIT_REF_OID) or symbolic (GIT_REF_SYMBOLIC)

Signature

git_ref_t git_reference_type(const git_reference *ref);

Parameters

In
ref

The reference

Returns

the type

Versions