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::Repository',
+ with 'Gitalist::Serializeable';
+
+ # 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' ],
+ traits => [qw/ DoNotSerialize /],
);
# 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)
}