libgit2

git_reference_type

Version:

Get the type of a reference.

Either direct (GIT_REFERENCE_DIRECT) or symbolic (GIT_REFERENCE_SYMBOLIC)

Signature

git_reference_t git_reference_type(const git_reference *ref);

Parameters

In
ref

The reference

Returns

the type

Versions