| Gitalist::Git::Repository - Model of a git repository |
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.
the Path::Class:Dir manpage 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 array of contents for a given tree. The tree is specified by sha1, and defaults to HEAD. Each item is a the Gitalist::Git::Object manpage.
Return an appropriate subclass of the Gitalist::Git::Object manpage 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 the Gitalist::Git::Object manpage.
Return a list of hashes representing each reflog entry.
FIXME Should this return objects?
the Gitalist::Git::Util manpage the Gitalist::Git::Object manpage
See Gitalist for authors.
See Gitalist for the license.
| Gitalist::Git::Repository - Model of a git repository |