libgit2

git_tag_annotation_create

Version:

Create a new tag in the object database pointing to a git_object

The message will not be cleaned up. This can be achieved through git_message_prettify().

Signature

int git_tag_annotation_create(git_oid *oid, git_repository *repo, const char *tag_name, const git_object *target, const git_signature *tagger, const char *message);

Parameters

In
oid

Pointer where to store the OID of the newly created tag

In
repo

Repository where to store the tag

const char *
In
tag_name

Name for the tag

In
target

Object to which this tag points. This object must belong to the given repo.

In
tagger

Signature of the tagger for this tag, and of the tagging time

const char *
In
message

Full message for this tag

Returns

int

0 on success or an error code

Versions