libgit2

git_tag_lookup_prefix

Version:

Lookup a tag object from the repository, given a prefix of its identifier (short id).

See

Signature

int git_tag_lookup_prefix(git_tag **out, git_repository *repo, const git_oid *id, size_t len);

Parameters

In
out

pointer to the looked up tag

In
repo

the repo to use when locating the tag.

In
id

identity of the tag to locate.

size_t
In
len

the length of the short identifier

Returns

int

0 or an error code

Versions