47 Tag
(require libgit2/include/tag) | package: libgit2 |
procedure
(git_tag_annotation_create oid repo tag_name target tagger message) → integer? oid : oid? repo : repository? tag_name : string? target : object? tagger : signature? message : string?
The message will not be cleaned up. This can be achieved through git_message_prettify().
procedure
(git_tag_create oid repo tag_name target tagger message force) → integer? oid : oid? repo : repository? tag_name : string? target : object? tagger : signature? message : string? force : boolean?
A new reference will also be created pointing to this tag object. If force is true and a reference already exists with the given name, it’ll be replaced.
The message will not be cleaned up. This can be achieved through git_message_prettify().
The tag name will be checked for validity. You must avoid the characters ’~’, ’^’, ’:’, ’\’, ’?’, ’[’, and ’*’, and the sequences ".." and @{ which have special meaning to revparse.
procedure
(git_tag_create_frombuffer oid repo buffer force) → integer? oid : oid? repo : repository? buffer : string? force : boolean?
procedure
(git_tag_create_lightweight oid repo tag_name target force) → integer? oid : oid? repo : repository? tag_name : string? target : object? force : boolean?
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.
The tag name will be checked for validity. See git_tag_create() for rules about valid names.
procedure
(git_tag_foreach repo callback payload) → integer?
repo : repository? callback : git_tag_foreach_cb payload : bytes?
procedure
(git_tag_free tag) → void?
tag : tag?
You can no longer use the git_tag pointer after this call.
IMPORTANT: You MUST call this method when you are through with a tag to release memory. Failure to do so will cause a memory leak.
procedure
(git_tag_list tag_names repo) → integer?
tag_names : strarray? repo : repository?
The string array will be filled with the names of the matching tags; these values are owned by the user and should be free’d manually when no longer needed, using git_strarray_free.
procedure
(git_tag_list_match tag_names pattern repo) → integer?
tag_names : strarray? pattern : string? repo : repository?
If an empty pattern is provided, all the tags will be returned.
The string array will be filled with the names of the matching tags; these values are owned by the user and should be free’d manually when no longer needed, using git_strarray_free.
procedure
repo : repository? id : oid? len : integer?
procedure
(git_tag_message tag) → string?
tag : tag?
procedure
(git_tag_name tag) → string?
tag : tag?
procedure
(git_tag_peel tag) → object?
tag : tag?
The retrieved tag_target object is owned by the repository and should be closed with the git_object_free method.
procedure
(git_tag_target tag) → object?
tag : tag?
This method performs a repository lookup for the given object and returns it