Git::Database::Backend::Git::Sub - A Git::Database backend based on Git::Sub
version 0.012
# Git::Sub does not offer an OO interface $dir = 'path/to/some/git/repository/'; # let Git::Database figure it out by itself my $db = Git::Database->new( store => $dir );
This backend reads and writes data from a Git repository using the Git::Sub Git wrapper.
Since Git::Sub has a functional interface, the store attribute is simply the path in which the git commands will run. If the path is a relative path, it will be coerced to an absolute path.
Note that overloaded objects (such as Path::Tiny, Path::Class and others) that stringify to the actual path are supported. When coercion to an absolute path occurs, it attempts to create an object of the same class representing the absolute path. If the coercion fails to create an object of the same class, the store attribute will be a string containing the absolute path.
This backend does the following roles (check their documentation for a list of supported methods): Git::Database::Role::Backend, Git::Database::Role::ObjectReader, Git::Database::Role::ObjectWriter, Git::Database::Role::RefReader, Git::Database::Role::RefWriter.
This backend may have issues with Perl 5.8.9, they are fixed in Git::Sub 0.163320.
There is also a minimum requirement on System::Sub 0.162800.
Philippe Bruhat (BooK) <book@cpan.org>
Copyright 2016-2019 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.