libgit2

git_tag_lookup

Version:

Lookup a tag object from the repository.

Signature

int git_tag_lookup(git_tag **tag, git_repository *repo, const git_oid *id);

Parameters

In
tag

pointer to the looked up tag

In
repo

the repo to use when locating the tag.

In
id

identity of the tag to locate.

Returns

int

0 or an error code

Versions