Create a new lightweight tag pointing at a target object
A new direct reference will be created pointing to
this target object. If force is true and a reference
already exists with the given name, it'll be replaced.
The tag name will be checked for validity.
See git_tag_create() for rules about valid names.
@param oid Pointer where to store the OID of the provided
target object. If the tag already exists, this parameter
will be filled with the oid of the existing pointed object
and the function will return a git_error_code.GIT_EEXISTS error code.
@param repo Repository where to store the lightweight tag
@param tag_name Name for the tag; this name is validated
for consistency. It should also not conflict with an
already existing tag name
@param target Object to which this tag points. This object
must belong to the given repo.
@param force Overwrite existing references
@return 0 on success, git_error_code.GIT_EINVALIDSPEC or an error code
A proper reference is written in the /refs/tags folder,
pointing to the provided target object
Create a new lightweight tag pointing at a target object
A new direct reference will be created pointing to this target object. If force is true and a reference already exists with the given name, it'll be replaced.
The tag name will be checked for validity. See git_tag_create() for rules about valid names.
@param oid Pointer where to store the OID of the provided target object. If the tag already exists, this parameter will be filled with the oid of the existing pointed object and the function will return a git_error_code.GIT_EEXISTS error code.
@param repo Repository where to store the lightweight tag
@param tag_name Name for the tag; this name is validated for consistency. It should also not conflict with an already existing tag name
@param target Object to which this tag points. This object must belong to the given repo.
@param force Overwrite existing references
@return 0 on success, git_error_code.GIT_EINVALIDSPEC or an error code A proper reference is written in the /refs/tags folder, pointing to the provided target object