NAME
Git::Database::Object::Blob - A blob object in the Git object database
VERSION
version 0.012
SYNOPSIS
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
DESCRIPTION
Git::Database::Object::Blob represents a blob
object obtained via Git::Database from a Git object database.
ATTRIBUTES
kind
The object kind: blob
.
digest
The SHA-1 digest of the blob object.
content
The object's actual content.
size
The size (in bytes) of the object content.
METHODS
new()
Create a new Git::Object::Database::Blob object.
The content
argument is required.
as_string()
Same as content()
.
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.