Git::Database::Object::Tag - A tag object in the Git database
version 0.012
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
Git::Database::Object::Tag represents a tag object obtained via Git::Database from a Git object database.
tag
All major attributes ("digest", "content", "size", "tag_info") have a predicate method.
The object kind: tag
The SHA-1 digest of the digest object.
The object's actual content.
The size (in bytes) of the object content.
A hash reference containing the all the attributes listed below, as values for the keys with the same names.
The SHA-1 digest of the tagged object.
The type of the tagged object.
The tag name.
A Git::Database::Actor object representing the author of the tag.
A DateTime object representing the date at which the author created the tag.
The text of the tag.
Create a new Git::Object::Database::Tag object.
One (and only one) of the content or tag arguments is required.
content
tag_info is a reference to a hash containing the keys listed above, i.e. object, type, tag, tagger, tagger_time, and comment.
tag_info
object
type
tagger
tagger_time
comment
Git::Database, Git::Database::Role::Object.
Philippe Bruhat (BooK) <book@cpan.org>.
Copyright 2013-2016 Philippe Bruhat (BooK), all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Git::Database, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Git::Database
CPAN shell
perl -MCPAN -e shell install Git::Database
For more information on module installation, please visit the detailed CPAN module installation guide.