Git::Database::Backend::None - A minimal backend for Git::Database
version 0.012
use Git::Database; use Git::Database::Backend::None; my $backend = Git::Database::Backend::None->new(); # the empty tree my $tree = Git::Database::Object::Tree->new( content => '' ); # 4b825dc642cb6eb9a060e54bf8d69288fbee4904 my $digest = $backend->hash_object( $tree );
Git::Database::Backend::None is the minimal backend class for Git::Database.
Git::Database::Backend::None
It can't read or write from a store, because it doesn't have one.
This backend does the following roles (check their documentation for a list of supported methods): Git::Database::Role::Backend.
Since it's not connected to a store, this class can't delegate the digest computation to Git itself. It therefore uses the default implementation provided by Git::Database::Role::Backend.
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.