X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FGitalist%2FController%2FRoot.pm;h=7fac1655636856a44f26b41f34ead9701a9e997a;hb=47495599588ae86769d675a239cbca6b07a36aa0;hp=06c0a8e7bec1a0c2573c3de604bf7260e8de25f6;hpb=27e05d7b88b45c2e24266616036af519f415b9ed;p=catagits%2FGitalist.git diff --git a/lib/Gitalist/Controller/Root.pm b/lib/Gitalist/Controller/Root.pm index 06c0a8e..7fac165 100644 --- a/lib/Gitalist/Controller/Root.pm +++ b/lib/Gitalist/Controller/Root.pm @@ -129,7 +129,7 @@ sub reflog : Local { =head2 commit -Exposes a given commit. Probably too simple currently. +Exposes a given commit. =cut @@ -142,6 +142,21 @@ sub commit : Local { ); } +=head2 shortlog + +Expose an abbreviated log of a given sha1. + +=cut + +sub shortlog : Local { + my ( $self, $c ) = @_; + + $c->stash( + commit => $c->model('Git')->get_object($c->req->param('h')), + action => 'shortlog', + ); +} + =head2 auto Populate the header and footer. Perhaps not the best location.