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. By default, this is derived from the path to the git repository.
Path::Class:Dir for the location of the git repository.
String containing .git/description
Owner of the files on disk.
DateTime for the time of the last update. undef if the repository has never been used.
Bool indicating whether this Project is bare.
ArrayRef of hashes containing the name and sha1 of all heads.
ArrayRef of hashes containing the name and sha1 of all tags.
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?
See Gitalist for authors.
See Gitalist for the license.