libgit2

git_tag_lookup

Version:

Lookup a tag object from the repository. The generated tag object is owned by the revision repo and shall not be freed by the user.

Signature

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

Parameters

git_tag **
In
tag

pointer to the looked up tag

git_repository *
In
repo

the repo to use when locating the tag.

In
id

identity of the tag to locate.

Returns

int

0 on success; error code otherwise

Versions