Git::Database::Object::Tree - A tree object in the Git object database
version 0.012
my $r = Git::Database->new(); # current Git repository my $tree = $r->get_object('b52168'); # abbreviated digest # attributes $tree->kind; # tree $tree->digest; # b52168be5ea341e918a9cbbb76012375170a439f ...; # etc., see below
Git::Database::Object::Tree represents a tree object obtained via Git::Database from a Git object database.
tree
All attributes have a predicate method.
The object kind: tree.
The SHA-1 digest of the tree object.
The object's actual content.
The size (in bytes) of the object content.
An array reference containing a list of Git::Database::DirectoryEntry objects representing the content of the tree.
Create a new Git::Object::Database::Commit object.
One (and only one) of the content or directory_entries arguments is required.
content
directory_entries
directory_entires is an array reference containing a list of Git::Database::DirectoryEntry objects representing the content of the tree.
directory_entires
The content of the tree object, in the format returned by git ls-tree.
git ls-tree
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.