Git::Database::Object::Blob - A blob object in the Git object database
version 0.010
my $r = Git::Database->new(); # current Git repository my $blob = $r->get_object('b52168'); # abbreviated digest # attributes $blob->kind; # blob $blob->digest; # b6fc4c620b67d95f953a5c1c1230aaab5db5a1b0 $blob->content; # hello ...; # etc., see below
Git::Database::Object::Blob represents a blob object obtained via Git::Database from a Git object database.
blob
The object kind: blob.
The SHA-1 digest of the blob object.
The object's actual content.
The size (in bytes) of the object content.
Create a new Git::Object::Database::Blob object.
The content argument is required.
content
Same as content().
content()
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.