1 package Gitalist::URIStructure::Fragment::WithLog;
2 use MooseX::MethodAttributes::Role;
3 use namespace::autoclean;
9 my $repository = $c->stash->{Repository};
12 sha1 => $c->stash->{Commit}->sha1, # $commit->sha1
13 count => 25, #Gitalist->config->{paging}{log} || 25,
16 my $page = $c->req->param('pg') || 0;
17 $logargs{skip} = $c->req->param('pg') * $logargs{count}
18 if $c->req->param('pg');
20 log_lines => [$repository->list_revs(%logargs)],
21 refs => $repository->references,