Git::Raw::Reference - Git reference class
Git::Raw::Reference represents a Git 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
Creates and returns a new direct reference named
$repo pointing to
$object can be a Git::Raw::Blob,
or a Git::Raw::Tree object.
$force is a truthy value,
any existing reference is overwritten.
$force is falsy (the default) and a reference named
$name already exists,
an error is thrown.
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
Retrieve the target of the reference.
$new_target parameter of type Git::Raw::Reference is passed,
the reference will be changed to point to it.
Note that updating the target will invalidate all existing handles to the reference.
Retrieve the Git::Raw::Repository owning the reference.
Check if the reference is a branch.
Check if the reference is remote.
Alessandro Ghedini <firstname.lastname@example.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.