View definition


Defined in


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 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