The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Git::Wrapper::Plus::Ref - An Abstract REF node

VERSION

version 0.004011

SYNOPSIS

    use Git::Wrapper::Plus::Ref;

    my $instance = Git::Wrapper::Plus::Ref->new(
        git => $git_wrapper,
        name => "refs/heads/foo"
    );
    $instance->refname # refs/heads/foo
    $instance->name    # refs/heads/foo
    $instance->sha1    # deadbeefbadf00da55c0ffee

METHODS

refname

Return the fully qualified ref name for this object.

This exists so that name can be made specialized in a subclass, for instance, a branch may have name as master, and refname will be overloaded to return refs/heads/master.

This is then used by the sha1 method to resolve the ref name to a sha1

sha1

Return the SHA1 resolving for refname

ATTRIBUTES

name

REQUIRED: The user friendly name for this ref

git

REQUIRED: A Git::Wrapper compatible object for resolving sha1 internals.

AUTHOR

Kent Fredric <kentnl@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Kent Fredric <kentfredric@gmail.com>.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.