]> Dogcows Code - chaz/git-codeowners/blobdiff - lib/App/Codeowners.pm
add DESCRIPTION to App::Codeowners
[chaz/git-codeowners] / lib / App / Codeowners.pm
index 1dc97cc49dba3ead168ab5e4bd23e2865c0d0424..8668051508ba765e261529ddca51a8f3144764d1 100644 (file)
@@ -201,11 +201,10 @@ END
 
     if ($repopath) {
         # if there is a repo we can try to update the list of unowned files
-        my $git_files = git_ls_files($repopath);
-        if (@$git_files) {
-            $codeowners->clear_unowned;
-            $codeowners->add_unowned(grep { !$codeowners->match($_) } @$git_files);
-        }
+        my ($proc, @filepaths) = git_ls_files($repopath);
+        $proc->wait and exit 1;
+        $codeowners->clear_unowned;
+        $codeowners->add_unowned(grep { !$codeowners->match($_) } @filepaths);
     }
 
     $codeowners->write_to_filepath($path);
@@ -213,3 +212,12 @@ END
 }
 
 1;
+__END__
+
+=head1 DESCRIPTION
+
+This is the implementation of the F<git-codeowners> command.
+
+See L<git-codeowners> for documentation.
+
+=cut
This page took 0.020019 seconds and 4 git commands to generate.