Git::Raw::Repository - Git repository class
version 0.09
A Git::Raw::Repository represents a Git repository.
Git::Raw::Repository
Initialize a new repository at $path.
$path
Open the repository at $path.
Discover the path to the repository directory given a subdirectory.
Retrieve the default Git::Raw::Config of the repository.
Retrieve the default Git::Raw::Index of the repository.
Retrieve the HEAD of the repository. This function may return a Git::Raw::Blob, a Git::Raw::Commit, a Git::Raw::Tag or a Git::Raw::Tree.
Retrieve the object corresponding to the given id. This function may return a Git::Raw::Blob, a Git::Raw::Commit, a Git::Raw::Tag or a Git::Raw::Tree.
Create a new Git::Raw::Commit given a message, an author and committer (Git::Raw::Signature), a list of parents (Git::Raw::Commit) and a tree (Git::Raw::Tree).
Reset the current HEAD to the given commit. Valid reset types are:
":soft"
the head will be moved to the commit
":mixed"
trigger a Soft reset and replace the index with the content of the commit tree
Retrieve the status of the given file in the working directory. This functions returns a list of status flags. Valid status flags are:
"index_new"
"index_modified"
"index_deleted"
"worktree_new"
"worktree_modified"
"worktree_deleted"
"ignored"
Compute the Git::Raw::Diff between the repository index and a tree. If no $tree is passed, the diff will be computed against the working directory.
$tree
Create a new branch (aka a Git::Raw::Reference) given a name and a target object (either a Git::Raw::Commit or a Git::Raw::Tag).
Create a new Git::Raw::Tag given a name, a message, a $tagger (Git::Raw::Signature) and a $target. The target may be a Git::Raw::Blob, a Git::Raw::Commit, a Git::Raw::Tag or a Git::Raw::Tree.
Retrieve a list of Git::Raw::Tag objects.
Retrieve a list of Git::Raw::Remote objects.
Create a new Git::Raw::Walker to iterate over repository's revisions.
Retrieve the complete path of the repository.
Retrieve the working directory of the repository.
Tell whether the repository is empty or not.
Tell whether the repository is bare or not.
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.