Git::Wrapper::Plus::Ref - An Abstract REF node
version 0.004011
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
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.
name
branch
master
refs/heads/master
This is then used by the sha1 method to resolve the ref name to a sha1
sha1
ref
Return the SHA1 resolving for refname
SHA1
REQUIRED: The user friendly name for this ref
git
REQUIRED: A Git::Wrapper compatible object for resolving sha1 internals.
Git::Wrapper
Kent Fredric <kentnl@cpan.org>
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.
To install Git::Wrapper::Plus, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Git::Wrapper::Plus
CPAN shell
perl -MCPAN -e shell install Git::Wrapper::Plus
For more information on module installation, please visit the detailed CPAN module installation guide.