On this page:
8.18
top
up

47TagπŸ”— i

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?
Create a new tag in the object database pointing to a git_object

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?
Create a new tag in the repository from an object

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?
Create a new tag in the repository from a buffer

procedure

( git_tag_create_lightweight oid
repo
tag_name
target
force)integer?
oid:oid?
repo:repository?
tag_name:string?
target:object?
force:boolean?
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.

procedure

( git_tag_deleterepotag_name)integer?

repo:repository?
tag_name:string?
Delete an existing tag reference.

The tag name will be checked for validity. See git_tag_create() for rules about valid names.

procedure

( git_tag_dupsource)tag?

source:tag?
Create an in-memory copy of a tag. The copy must be explicitly free’d or it will leak.

procedure

( git_tag_foreachrepocallbackpayload)integer?

repo:repository?
callback:git_tag_foreach_cb
payload:bytes?
Call callback ‘cb’ for each tag in the repository

procedure

( git_tag_freetag)void?

tag:tag?
Close an open 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_idtag)oid?

tag:tag?
Get the id of a tag.

procedure

( git_tag_listtag_namesrepo)integer?

tag_names:strarray?
repo:repository?
Fill a list with all the tags in the 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_matchtag_namespatternrepo)integer?

tag_names:strarray?
pattern:string?
repo:repository?
Fill a list with all the tags in the Repository which name match a defined pattern

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

( git_tag_lookuprepoid)tag?

repo:repository?
id:oid?
Lookup a tag object from the repository.

procedure

( git_tag_lookup_prefixrepoidlen)tag?

repo:repository?
id:oid?
len:integer?
Lookup a tag object from the repository, given a prefix of its identifier (short id).

procedure

( git_tag_messagetag)string?

tag:tag?
Get the message of a tag

procedure

( git_tag_nametag)string?

tag:tag?
Get the name of a tag

procedure

( git_tag_ownertag)repository?

tag:tag?
Get the repository that contains the tag.

procedure

( git_tag_peeltag)object?

tag:tag?
Recursively peel a tag until a non tag git_object is found

The retrieved tag_target object is owned by the repository and should be closed with the git_object_free method.

procedure

( git_tag_taggertag)signature?

tag:tag?
Get the tagger (author) of a tag

procedure

( git_tag_targettag)object?

tag:tag?
Get the tagged object of a tag

This method performs a repository lookup for the given object and returns it

procedure

( git_tag_target_idtag)oid?

tag:tag?
Get the OID of the tagged object of a tag

procedure

( git_tag_target_typetag)git_otype

tag:tag?
Get the type of a tag’s tagged object

top
up

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /