class Git::Object::AbstractObject::Tag

A Git tag object

This class represents a tag in Git, which can be either annotated or lightweight.

Annotated tags contain additional metadata such as the tagger’s name, email, and the date when the tag was created, along with a message.

@deprecated Use {Git::Repository::ObjectOperations#tag_list} and

{Git::TagInfo} instead

{Git::TagInfo} is an immutable value object carrying the tag's `name`,
`oid`, `target_oid`, `annotated?`, `message`, and `tagger`. Call the
corresponding {Git::Repository} method (e.g. `archive`, `log`, `diff`,
`cat_file_contents`) with `info.oid || info.target_oid` for operations
on a tag; that is the object this class resolves and pins at
construction, so a later move of the tag does not redirect an existing
object, whereas the tag name would. Constructing a `Git::Object::Tag`
emits a deprecation warning.