libgit2

git_tag_peel

Version:

Recursively peel a tag until a non tag git_object is met

The retrieved tag_target object is owned by the repository and should be closed with the git_object_free method.

Signature

int git_tag_peel(git_object **tag_target, git_tag *tag);

Parameters

In
tag_target

Pointer to the peeled git_object

In
tag

The tag to be processed

Returns

int

0 or an error code

Versions