libgit2

git_reference_is_tag

Version:

Check if a reference is a tag

Signature

int git_reference_is_tag(const git_reference *ref);

Parameters

In
ref

A git reference

Returns

int

1 when the reference lives in the refs/tags namespace; 0 otherwise.

Versions