removed redundant data structure part in commit count
[scpubgit/System-Introspector.git] / lib / System / Introspector / Probe / Repositories / Git.pm
index 610372d..bd5ef23 100644 (file)
@@ -64,7 +64,7 @@ sub _find_tracking {
                     $self->_find_changes($dir, $local, $remote);
                 },
                 local_commit_count => transform_exceptions {
-                    $self->_find_commits($dir, $local, $remote);
+                    $self->_find_commit_count($dir, $local, $remote);
                 },
             }
         }
@@ -75,14 +75,14 @@ sub _find_tracking {
     return { branches => \%branch };
 }
 
-sub _find_commits {
+sub _find_commit_count {
     my ($self, $dir, $local, $remote) = @_;
     return { __error__ => "No remote" }
         unless defined $remote;
     local $ENV{GIT_DIR} = $dir;
     my @lines = lines_from_command
         ['git', 'log', '--oneline', "$remote..$local"];
-    return { count => scalar @lines };
+    return scalar @lines;
 }
 
 sub _find_changes {