Git::Repository::Log - Class representing git log data
version 1.301
# load the Log plugin use Git::Repository 'Log'; # get the log for last commit my ($log) = Git::Repository->log( '-1' ); # get the author's email print my $email = $log->author_email;
Git::Repository::Log is a class whose instances reprensent log items from a git log stream.
This method shouldn't be used directly. Git::Repository::Log::Iterator should be the preferred way to create Git::Repository::Log objects.
Create a new Git::Repository::Log instance, using the list of key/values passed as parameters. The supported keys are (from the output of git log --pretty=raw):
git log --pretty=raw
The commit id (ignore the extra information added by --decorate).
The tree id.
The parent list, separated by spaces.
The author information.
The committer information.
The log message (including the 4-space indent normally output by git log).
Any extra text that might be added by extra options passed to git log.
The following accessors methods are recognized. They all return scalars, except for parent(), which returns a list.
parent()
The original author/committer line
The log message with the 4-space indent output by git log.
The unindented version of the log message.
Philippe Bruhat (BooK) <book@cpan.org>
This software is copyright (c) 2013 by Philippe Bruhat (BooK).
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Git::Repository, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Git::Repository
CPAN shell
perl -MCPAN -e shell install Git::Repository
For more information on module installation, please visit the detailed CPAN module installation guide.