Git::Gitalist::Repository - Model of a git repository
my $gitrepo = dir('/repo/base/Gitalist'); my $repository = Git::Gitalist::Repository->new($gitrepo); $repository->name; # 'Gitalist' $repository->path; # '/repo/base/Gitalist/.git' $repository->description; # 'Unnamed repository.'
This class models a git repository, referred to in Gitalist as a "Repository".
The name of the Repository. 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 appropriate subclass of Git::Gitalist::Object for the given sha1.
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 Git::Gitalist::Object.
Return a list of hashes representing each reflog entry.
FIXME Should this return objects?
Git::Gitalist::Util Git::Gitalist::Object
See Git::Gitalist for authors.
See Git::Gitalist for the license.
To install Git::Gitalist, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Git::Gitalist
CPAN shell
perl -MCPAN -e shell install Git::Gitalist
For more information on module installation, please visit the detailed CPAN module installation guide.