Revert "Merge remote branch 't0m/json' into json"
[catagits/Gitalist.git] / lib / Gitalist / Git / Object.pm
index 9cefe6c..31b07d6 100644 (file)
@@ -5,8 +5,8 @@ class Gitalist::Git::Object {
     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,
@@ -35,8 +35,7 @@ class Gitalist::Git::Object {
                       required => 1,
                       is => 'ro',
                       lazy_build => 1,
-                      handles => [ 'content',
-                               ],
+                      handles => [ 'content' ],
                   );
 
     # objects can't determine their mode or filename
@@ -78,7 +77,7 @@ class Gitalist::Git::Object {
         S_IFGITLINK => 0160000,
     };
 
-    # submodule/subproject, a commit object reference
+    # submodule/subrepository, a commit object reference
     sub S_ISGITLINK($) {
         return (($_[0] & S_IFMT) == S_IFGITLINK)
     }
@@ -115,7 +114,7 @@ Gitalist::Git::Object - Model of a git object.
 
 =head1 SYNOPSIS
 
-    my $object = Project->get_object($sha1);
+    my $object = Repository->get_object($sha1);
 
 =head1 DESCRIPTION