git_tag_annotation_create

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().

extern (C) nothrow @nogc
int
git_tag_annotation_create

Parameters

oid libgit2_d.oid.git_oid*

Pointer where to store the OID of the newly created tag

repo libgit2_d.types.git_repository*

Repository where to store the tag

tag_name const(char)*

Name for the tag

target const(libgit2_d.types.git_object)*

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

tagger const(libgit2_d.types.git_signature)*

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

message const(char)*

Full message for this tag

Return Value

Type: int

0 on success or an error code

Meta