The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Git::Raw::Reference - Git reference class

VERSION

version 0.10

DESCRIPTION

A Git::Raw::Reference represents a Git reference.

METHODS

lookup( $name )

Retrieve the reference with name $name.

delete( )

Delete the given refere

name( )

Retrieve the name of the reference.

type( )

Retrieve the type of the reference. Can be either "direct" or "symbolic".

target( )

Retrieve the target of the reference. This function returns either an object (Git::Raw::Blob, Git::Raw::Commit, Git::Raw::Tag or Git::Raw::Tree) for direct references, or another reference for symbolic references.

AUTHOR

Alessandro Ghedini <alexbio@cpan.org>

LICENSE AND COPYRIGHT

Copyright 2012 Alessandro Ghedini.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.