libgit2

git_tag_create_frombuffer

Version:

Create a new tag in the repository from a buffer

Signature

int git_tag_create_frombuffer(git_oid *oid, git_repository *repo, const char *buffer, int force);

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
buffer

Raw tag data

int
In
force

Overwrite existing tags

Returns

int

0 on sucess; error code otherwise

Versions