Yanick Champoux > GitStore-0.11 > GitStore::Revision

Download:
GitStore-0.11.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.11   Source   Latest Release: GitStore-0.15

NAME ^

GitStore::Revision - the state of a given path for a specific commit

VERSION ^

version 0.11

SYNOPSIS ^

   use GitStore;

   my $gs = GitStore->new('/path/to/repo');

   my @history = $gs->history( 'path/to/object' );

   for my $rev ( @history ) {
        say "modified at: ", $rev->timestamp;
        say "commit message was: ", $rev->message;
        say "===\n", $rev->content;
   }

DESCRIPTION ^

Represents an object in a GitStore at a specific commit.

METHODS ^

sha1

Returns the SHA-1 of the commit.

commit_object

Returns the Git::PurePerl::Object::Commit object containing the file revision.

timestamp

Returns the commit time of the revision as a DateTime object.

message

Returns the commit message of the revision. Note that the message might have additional trailing carriage returns.

path

Returns the path of the GitStore object.

content

Returns the content of the object. If the object is a frozen ref, the structure will be returned, like for `GitStore`'s `get()`.

AUTHORS ^

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2012 by Fayland Lam <fayland@gmail.com>.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: