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

Pointer to a git_strarray structure where the tag names will be stored

In
repo

Repository where to find the tags

Returns

int

0 or an error code

Versions