Git::Database::Role::RefWriter - Abstract role for Git backends that write references
version 0.010
package MyGitBackend; use Moo; use namespace::clean; with 'Git::Database::Role::Backend', 'Git::Database::Role::RefWriter'; # implement the required methods sub put_ref { ... } sub delete_ref { ... }
A backend doing the additional Git::Database::Role::RefWriter role is capable of writing references to a Git repository.
$backend->put_ref( 'refs/heads/master', $digest );
Add or update the (fully qualified) refname to point to the given digest.
$backend->delete_ref( 'refs/heads/master' );
Unconditionaly delete the given refname.
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.