Git::Raw::Reference - Git reference class
version 0.26
A Git::Raw::Reference represents a Git reference.
Git::Raw::Reference
WARNING: The API of this module is unstable and may change without warning (any change will be appropriately documented in the changelog).
Retrieve the reference with name $name in $repo.
$name
$repo
Delete the reference. The Git::Raw::Reference object must not be accessed afterwards.
Retrieve the name of the reference.
Retrieve the type of the reference. Can be either "direct" or "symbolic".
"direct"
"symbolic"
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.
Retrieve the Git::Raw::Repository owning the reference.
Check if the reference is a branch.
Check if the reference is remote.
Alessandro Ghedini <alexbio@cpan.org>
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.
To install Git::Raw, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Git::Raw
CPAN shell
perl -MCPAN -e shell install Git::Raw
For more information on module installation, please visit the detailed CPAN module installation guide.