use MooseX::Types::Moose qw/Str Int Bool Maybe ArrayRef/;
use MooseX::Types::Common::String qw/NonEmptySimpleStr/;
- # project and sha1 are required initargs
- has project => ( isa => 'Gitalist::Git::Project',
+ # repository and sha1 are required initargs
+ has repository => ( isa => 'Gitalist::Git::Repository',
required => 1,
is => 'ro',
weak_ref => 1,
required => 1,
is => 'ro',
lazy_build => 1,
- handles => [ 'content',
- ],
+ handles => [ 'content' ],
);
# objects can't determine their mode or filename
S_IFGITLINK => 0160000,
};
- # submodule/subproject, a commit object reference
+ # submodule/subrepository, a commit object reference
sub S_ISGITLINK($) {
return (($_[0] & S_IFMT) == S_IFGITLINK)
}
=head1 SYNOPSIS
- my $object = Project->get_object($sha1);
+ my $object = Repository->get_object($sha1);
=head1 DESCRIPTION