-
-
10 Apr 2016 14:43:08 UTC
- Distribution: Git-Repository-Plugin-Log
- Module version: 1.314
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues (3)
- Testers (4929 / 180 / 0)
- Kwalitee
Bus factor: 1- 93.23% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity
24 month- Tools
- Download (38.84KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
NAME
Git::Repository::Plugin::Log - Add a log() method to Git::Repository
SYNOPSIS
# load the plugin use Git::Repository 'Log'; my $r = Git::Repository->new(); # get all log objects my @logs = $r->log(qw( --since=yesterday )); # get an iterator my $iter = $r->log(qw( --since=yesterday )); while ( my $log = $iter->next() ) { ...; }
DESCRIPTION
This module adds a new method to Git::Repository.
METHOD
log
# iterator my $iter = $r->log( @args ); # all Git::Repository::Log objects obtained from the log my @logs = $r->log( @args );
Run
git log
with the given arguments.In scalar context, returns a Git::Repository::Log::Iterator object, which can return Git::Repository::Log objects on demand.
In list context, returns the full list Git::Repository::Log objects. Note that this can be very memory-intensive.
See Git::Repository::Log::Iterator's documentation for details about how parameters are handled.
ACKNOWLEDGEMENTS
Many thanks to Aristotle Pagaltzis who requested a
log()
method in the first place, and for very interesting conversations on the topic.SEE ALSO
Git::Repository::Plugin, Git::Repository::Log::Iterator, Git::Repository::Log.
COPYRIGHT
Copyright 2010-2016 Philippe Bruhat (BooK), all rights reserved.
LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Git::Repository::Plugin::Log, copy and paste the appropriate command in to your terminal.
cpanm Git::Repository::Plugin::Log
perl -MCPAN -e shell install Git::Repository::Plugin::Log
For more information on module installation, please visit the detailed CPAN module installation guide.