3 use namespace::autoclean;
5 use Catalyst::Runtime 5.80;
16 our $VERSION = '0.01';
18 # Bring in the libified gitweb.cgi.
23 default_view => 'Default',
24 default_model => 'GitRepos',
25 # Set to 1 to make your fcgi die the request after you push :)
26 exit_at_end_of_request_if_updated => 0,
29 # Start the application
32 around uri_for => sub {
33 my ($orig, $c) = (shift, shift);
34 my $project_name = $c->stash->{'Project'} && $c->stash->{'Project'}->name;
35 my $hash = ref($_[-1]) eq 'HASH' ? pop @_ : {};
36 my $params = Catalyst::Utils::merge_hashes(
37 { p => $hash->{p} || $project_name },
40 delete $params->{p} unless defined $params->{p} && length $params->{p};
41 (my $uri = $c->$orig(@_, $params))
48 Gitalist - Transitional project to convert gitweb.cgi to a Catalyst app
52 script/gitalist_server.pl
57 As Gitalist follows the usual Perl module format the usual approach
58 for installation should work e.g
65 If you're running a git checkout of Gitalist then you'll additionally
66 need the author modules. I<NB: As no distribution exists one will
67 presently need the author modules>.
71 Gitalist is a web frontend for git repositories based on gitweb.cgi
72 and backed by Catalyst. It doesn't yet have the full functionality of
73 gitweb.cgi but it does have a few small additions at this stage.
77 This project started off as an attempt to port gitweb.cgi to a
78 Catalyst app in a piecemeal fashion. As it turns out, thanks largely
79 to Florian Ragwitz's earlier effort, it was easier to use gitweb.cgi
80 as a template for building a new Catalyst application.
84 L<Gitalist::Controller::Root>
86 L<Gitalist::Git::Project>
90 =head1 AUTHORS AND COPYRIGHT
93 (C) 2009 Venda Ltd and Dan Brook <broq@cpan.org>
94 (C) 2009, Tom Doran <bobtfish@bobtfish.net>
95 (C) 2009, Zac Stevens <zts@cryptocracy.com>
97 Original gitweb.cgi from which this was derived:
98 (C) 2005-2006, Kay Sievers <kay.sievers@vrfy.org>
99 (C) 2005, Christian Gierke
101 Model based on http://github.com/rafl/gitweb
102 (C) 2008, Florian Ragwitz
106 Licensed under GNU GPL v2