libgit2

git_tag_list

Version:

Fill a list with all the tags in the Repository

The string array will be filled with the names of the matching tags; these values are owned by the user and should be free'd manually when no longer needed, using git_strarray_free.

Signature

int git_tag_list(git_strarray *tag_names, git_repository *repo);

Parameters

In
tag_names
In
repo

Repository where to find the tags

Returns

int

0 on success; error code otherwise

Versions