GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  GIT::REPOSITORY::LOG (3)

.ds Aq ’

NAME

Git::Repository::Log - Class representing git log data

CONTENTS

SYNOPSIS



    # load the Log plugin
    use Git::Repository Log;

    # get the log for last commit
    my ($log) = Git::Repository->log( -1 );

    # get the authors email
    print my $email = $log->author_email;



DESCRIPTION

Git::Repository::Log is a class whose instances represent log items from a <B>git logB> stream.

CONSTRUCTOR

This method shouldn’t be used directly. Git::Repository::Log::Iterator should be the preferred way to create Git::Repository::Log objects.

    new

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):
commit The commit id (ignoring the extra information added by --decorate).
tree The tree id.
parent The parent list, separated by spaces.
author The author information.
committer The committer information.
message The log message (including the 4-space indent normally output by <B>git logB>).
gpgsig The commit signature.
mergetag The mergetag information.
diff_from The commit from which the diff was taken.

This is the extra from information on the commit header that is added by <B>gitB> when the log contains a diff (using the -p or --name-status option). In this case, git log may show the same commit several times.

extra Any extra text that might be added by extra options passed to <B>git logB> (e.g. -p or --name-status).
Note that since git tag --pretty=raw does not provide the encoding header (and provides the message properly decoded), this information will not be available via Git::Repository::Plugin::Log.

ACCESSORS

The following accessors methods are recognized. They all return scalars, except for parent(), which returns a list.

    Commit information

commit
tree
parent

    Author and committer information

author
committer The original author/committer line
author_name
committer_name
author_email
committer_email

    Date information

author_gmtime
committer_gmtime
author_localtime
committer_localtime
author_tz
committer_tz

    Log information

raw_message The log message with the 4-space indent output by <B>git logB>.
message The unindented version of the log message.
subject
body

    Signature-related information

gpgsig
mergetag

    Extra information

extra

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.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 GIT::REPOSITORY::LOG (3) 2016-01-25

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.