View on
MetaCPAN
search.cpan.org is shutting down
For details read Perl NOC. After June 25th this page will redirect to MetaCPAN.org
Philippe Bruhat (BooK) > Git-Database-0.007 > Git::Database::Backend::None

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::Backend::None - A minimal backend for Git::Database

VERSION ^

version 0.007

SYNOPSIS ^

    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 );

DESCRIPTION ^

Git::Database::Backend::None is the minimal backend class for Git::Database.

It can't read or write from a store, because it doesn't have one.

Git Database Roles

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.

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: