View on
MetaCPAN
Philippe Bruhat (BooK) > Git-Database-0.007 > Git::Database::Role::RefWriter

Download:
Git-Database-0.007.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.007   Source   Latest Release: Git-Database-0.010

NAME ^

Git::Database::Role::RefWriter - Abstract role for Git backends that write references

VERSION ^

version 0.007

SYNOPSIS ^

    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 { ... }

DESCRIPTION ^

A backend doing the additional Git::Database::Role::RefWriter role is capable of writing references to a Git repository.

REQUIRED METHODS ^

put_ref

    $backend->put_ref( 'refs/heads/master', $digest );

Add or update the (fully qualified) refname to point to the given digest.

delete_ref

    $backend->delete_ref( 'refs/heads/master' );

Unconditionaly delete the given refname.

AUTHOR ^

Philippe Bruhat (BooK) <book@cpan.org>.

COPYRIGHT ^

Copyright 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.

syntax highlighting: