Gitalist::Git::Project - Model of a git repository
my $gitrepo = dir('/repo/base/Gitalist'); my $project = Gitalist::Git::Project->new($gitrepo); $project->name; # 'Gitalist' $project->path; # '/repo/base/Gitalist/.git' $project->description; # 'Unnamed repository.'
This class models a git repository, referred to in Gitalist as a "Project".
The name of the Project. If unspecified, this will be derived from the path to the git repository.
Path::Class:Dir for the filesystem path to the git repository.
The contents of .git/description.
Owner of the files on the filesystem.
The DateTime of the last modification of the repository. This will be undef if the repository has never been used.
undef
True if this is a bare git repository.
An array of the name and sha1 of all heads/tags in the repository.
Hashref of ArrayRefs for each reference.
Return the sha1 for HEAD, or any specified head.
Return an array of contents for a given tree. The tree is specified by sha1, and defaults to HEAD. Each item is a Gitalist::Git::Object.
Return an appropriate subclass of Gitalist::Git::Object for the given sha1.
Returns the sha1 for a given path, optionally limited by type.
Returns a list of revs for the given head ($sha1).
Generate an archived snapshot of the repository. $sha1 should be a commit or tree. Returns a filehandle to read from.
Generate a diff from a given Gitalist::Git::Object.
Return a list of hashes representing each reflog entry.
FIXME Should this return objects?
Gitalist::Git::Util Gitalist::Git::Object
See Gitalist for authors.
See Gitalist for the license.
To install Gitalist, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Gitalist
CPAN shell
perl -MCPAN -e shell install Gitalist
For more information on module installation, please visit the detailed CPAN module installation guide.