
Gitalist::Git::Repository - Model of a git repository

my $gitrepo = dir('/repo/base/Gitalist');
my $repository = Gitalist::Git::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.
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 Gitalist::Git::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 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.