NAME
Git::Raw::Repository - libgit2 repository class
VERSION
version 0.01
DESCRIPTION
A Git::Raw::Repository
represents a Git repository.
METHODS
init( $path, $is_bare )
Initialize a new repository at $path
.
open( $path )
Open the repository at $path
.
config( )
Retrieve the default Git::Raw::Config of the repository.
index( )
Retrieve the default Git::Raw::Index of the repository.
lookup_commit( $id )
Retrieve the Git::Raw::Commit corresponding to the given ID..
lookup_tree( $id )
Retrieve the Git::Raw::Tree corresponding to the given ID..
commit( $msg, $author, $committer, @parents, $tree )
Create a new commit given a message, an author and committer (Git::Raw::Signature), a list of parents (Git::Raw::Commit) and a tree (Git::Raw::Tree).
path( )
Retrieve the complete path of the repository.
workdir( )
Retrieve the working directory of the repository.
is_empty( )
Tell whether the repository is empty or not.
is_bare( )
Tell whether the repository is bare or not.
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.