Query: git::repository::log::iterator
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Git::Repository::Log::Iterator(3pm) User Contributed Perl Documentation Git::Repository::Log::Iterator(3pm)NAMEGit::Repository::Log::Iterator - Split a git log stream into recordsSYNOPSISuse Git::Repository::Log::Iterator; # use a default Git::Repository context my $iter = Git::Repository::Log::Iterator->new('HEAD~10..'); # or provide an existing instance my $iter = Git::Repository::Log::Iterator->new( $r, 'HEAD~10..' ); # get the next log record while ( my $log = $iter->next ) { ...; }DESCRIPTION"Git::Repository::Log::Iterator" initiates a git log command from a list of paramaters and parses its output to produce "Git::Repository::Log" objects represening each log item.METHODSnew( @args ) Create a new git log stream from the parameter list in @args and return a iterator on it. "new()" will happily accept any parameters, but note that "Git::Repository::Log::Iterator" expects the output to look like that of "--pretty=raw", and so will force the the "--pretty" option (in case "format.pretty" is defined in the Git configuration). Extra output (like patches) will be stored in the "extra" parameter of the "Git::Repository::Log" object. Decorations will be lost. When unsupported options are recognized in the parameter list, "new()" will "croak()" with a message advising to use "run( 'log' => ... )" to parse the output yourself. next() Return the next log item as a "Git::Repository::Log" object, or nothing if the stream has ended.AUTHORPhilippe Bruhat (BooK), "<book at cpan.org>"COPYRIGHTCopyright 2010 Philippe Bruhat (BooK), all rights reserved.LICENSEThis program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2011-12-28 Git::Repository::Log::Iterator(3pm)
Related Man Pages |
---|
git::svn::editor(3) - centos |
git::repository(3pm) - debian |
git::repository::plugin::log(3pm) - debian |
log::dispatch::array(3pm) - debian |
log::handler::output::screen(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
Log file not getting populated when using BTEQ |
Piping tail to awk to parse a log file |
Log Capture for Background Process |
What are the BEST Repository for Unix? |
Log of lost internet connections |