View definition

(*TagsCollection).CreateLightweight

Defined in github.com/libgit2/git2go/tag.go

Description

CreateLightweight creates a new lightweight tag pointing to a commit and returns the id of the target object.

The name of the tag is validated for consistency (see git_tag_create() for the rules https://libgit2.github.com/libgit2/#HEAD/group/tag/git_tag_create) and should not conflict with an already existing tag name.

If force is true and a reference already exists with the given name, it'll be replaced.

The created tag is a simple reference and can be queried using repo.References.Lookup("refs/tags/<name>"). The name of the tag (eg "v1.0.0") is queried with ref.Shorthand().

CreateLightweight is referenced in 1 repository

github.com/libgit2/git2go