libgit2

git_tag_peel

Version:

Recursively peel a tag until a non tag git_object is found

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_out, const git_tag *tag);

Parameters

In
tag_target_out

Pointer to the peeled git_object

In
tag

The tag to be processed

Returns

int

0 or an error code

Versions