libgit2

git_tag_new

Version:

Create a new in-memory git_tag.

The tag object must be manually filled using setter methods before it can be written to its repository.

Signature

int git_tag_new(git_tag **tag, git_repository *repo);

Parameters

git_tag **
In
tag

pointer to the new tag

git_repository *
In
repo

The repository where the object will reside

Returns

int

0 on success; error code otherwise

Versions