This file documents the revision history for Perl extension Gitalist.
+0.002001 2010-07-03
- Fix for loadCommitInfo.
- Fix tests to work with local-libbery.
- Correct example link and FCGI script.
- Throttle the commit info loading.
- Update bootstrapping for local::lib 1.006000.
- Fixed author_* barewords in Makefile.PL.
+ - Handle merges in the diff view.
0.001008 2010-06-03
- Add a requires_external_bin for the git command so we won't try running
Gitalist is also mirrored to github, and a number of people have active
forks with branches and/or new features in the master branch.
+BOOTSTRAPPING
+ As of 0.002001 Gitalist can now be bootstrapped to run out of its own
+ directory by installing its prerequisites locally with the help of
+ local::lib. So instead of installing the prerequisites to the system
+ path with CPAN they are installed under the Gitalist directory.
+
+ To do this clone Gitalist from the Shadowcat repository mentioned above
+ or grab a download from CPAN or broquaint's github repository:
+
+ http://github.com/broquaint/Gitalist/downloads
+
+ With the source acquired and unpacked run the following from within the
+ Gitalist directory:
+
+ perl script/bootstrap
+
+ This will install the necessary modules for the build process which in
+ turn installs the prerequisites locally.
+
INITIAL CONFIGURATION
Gitalist is configured using Catalyst::Plugin::Configloader. The
supplied sample configuration is in Config::General format, however it
SubRequest
/;
-our $VERSION = '0.001008';
+our $VERSION = '0.002001_01';
$VERSION = eval $VERSION;
__PACKAGE__->config(
Gitalist is also mirrored to github, and a number of people have active forks
with branches and/or new features in the master branch.
+=head1 BOOTSTRAPPING
+
+As of C<0.002001> Gitalist can now be bootstrapped to run out of its
+own directory by installing its prerequisites locally with the help of
+L<local::lib>. So instead of installing the prerequisites to the
+system path with CPAN they are installed under the Gitalist directory.
+
+To do this clone Gitalist from the Shadowcat repository mentioned
+above or grab a download from CPAN or broquaint's github repository:
+
+ http://github.com/broquaint/Gitalist/downloads
+
+With the source acquired and unpacked run the following from within the
+Gitalist directory:
+
+ perl script/bootstrap
+
+This will install the necessary modules for the build process which in
+turn installs the prerequisites locally.
+
=head1 INITIAL CONFIGURATION
Gitalist is configured using L<Catalyst::Plugin::Configloader>. The supplied sample
my $json_obj = !$commit
? { }
: {
- sha1 => $commit->sha1,
- comment => $c->stash->{short_cmt}->($commit->comment),
- age => $c->stash->{time_since}->($commit->authored_time),
- };
+ sha1 => $commit->sha1,
+ comment => $c->stash->{short_cmt}->($commit->comment),
+ age => $c->stash->{time_since}->($commit->authored_time),
+ };
$c->response->content_type('application/json');
# XXX Make use of the json branch
( $filename ? ('--', $filename) : () ),
);
- # If we're not comparing against something and we have multiple
- # parents then it's a merge commit so show what was merged.
- my $sha1 = $parent && $parent eq '-c' && @{[$self->parents]} > 1
- ? sprintf("%s^1..%s^2", ($self->sha1) x 2)
- : $self->sha1;
+ # If we're not comparing against something and we have multiple
+ # parents then it's a merge commit so show what was merged.
+ my $sha1 = $parent && $parent eq '-c' && @{[$self->parents]} > 1
+ ? sprintf("%s^1..%s^2", ($self->sha1) x 2)
+ : $self->sha1;
my @out = $self->_raw_diff(
( $patch ? '--patch-with-raw' : () ),