Git::Database::Role::ObjectWriter - Abstract role for Git backends that write objects
version 0.012
package MyGitBackend; use Moo; use namespace::clean; with 'Git::Database::Role::Backend', 'Git::Database::Role::ObjectWriter'; # implement the required methods sub put_object { ... }
A backend doing the additional Git::Database::Role::ObjectWriter role is capable of writing the data from objects to the attached Git repository.
# a Git::Database::Object::Tree representing the empty tree my $tree = Git::Database::Object::Tree->new( content => '' ); my $digest = $backend->put_object( $tree );
Given an object, put_object will write the data for the object in the underlying repository database, and return the digest for the object.
put_object
Philippe Bruhat (BooK) <book@cpan.org>.
Copyright 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.