First attempt at fixing up the history action.
[catagits/Gitalist.git] / lib / Gitalist / URIStructure / Fragment / WithLog.pm
index b1a7d36..470f59d 100644 (file)
@@ -7,24 +7,18 @@ requires 'log';
 after log => sub {
     my ($self, $c) = @_;
     my $repository  = $c->stash->{Repository};
-#    my $commit   =  $self->_get_object($c, $c->req->param('hb'));
-#    my $filename = $c->req->param('f') || '';
 
     my %logargs = (
        sha1   => $c->stash->{Commit}->sha1, # $commit->sha1
        count  => 25, #Gitalist->config->{paging}{log} || 25,
-#       ($filename ? (file => $filename) : ())
     );
 
     my $page = $c->req->param('pg') || 0;
     $logargs{skip} = $c->req->param('pg') * $logargs{count}
         if $c->req->param('pg');
     $c->stash(
-#       commit    => $commit,
        log_lines => [$repository->list_revs(%logargs)],
-#       refs      => $repository->references,
-#       page      => $page,
-#       filename  => $filename,
+       refs      => $repository->references,
     );
 };