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 **tag, git_repository *repo, const git_oid *id, unsigned int len);

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.

unsigned int
In
len

the length of the short identifier

Returns

int

GIT_SUCCESS or an error code

Versions