Philippe Bruhat (BooK)
and 2 contributors

NAME

Git::Database::Object::Tag - A tag object in the Git database

VERSION

version 0.007

SYNOPSIS

    my $r   = Git::Database->new();       # current Git repository
    my $tag = $r->get_object('f5c10c');   # abbreviated digest

    # attributes
    $tag->kind;              # tag
    $tag->digest;            # f5c10c1a841419d3b1db0c3e0c42b554f9e1eeb2
    $tag->object;            # ef25e81ba86b7df16956c974c8a9c1ff2eca1326
    $tag->type;              # commit
    ...;                     # etc., see below

DESCRIPTION

Git::Database::Object::Tag represents a tag object obtained via Git::Database from a Git object database.

ATTRIBUTES

All major attributes ("digest", "content", "size", "tag_info") have a predicate method.

kind

The object kind: tag

digest

The SHA-1 digest of the digest object.

content

The object's actual content.

size

The size (in bytes) of the object content.

tag_info

A hash reference containing the all the attributes listed below, as values for the keys with the same names.

object

The SHA-1 digest of the tagged object.

type

The type of the tagged object.

tag

The tag name.

tagger

A Git::Database::Actor object representing the author of the tag.

tagger_date

A DateTime object representing the date at which the author created the tag.

comment

The text of the tag.

METHODS

new()

Create a new Git::Object::Database::Tag object.

One (and only one) of the content or tag arguments is required.

tag_info is a reference to a hash containing the keys listed above, i.e. object, type, tag, tagger, tagger_time, and comment.

SEE ALSO

Git::Database, Git::Database::Role::Object.

AUTHOR

Philippe Bruhat (BooK) <book@cpan.org>.

COPYRIGHT

Copyright 2013-2016 Philippe Bruhat (BooK), all rights reserved.

LICENSE

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.