libgit2

git_tag_target

Version:

Get the tagged object of a tag

This method performs a repository lookup for the given object and returns it

Signature

int git_tag_target(git_object **target, git_tag *tag);

Parameters

In
target

pointer where to store the target

In
tag

a previously loaded tag.

Returns

int

0 on success; error code otherwise

Versions