GitStore::Revision - the state of a given path for a specific commit
version 0.17
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; }
Represents an object in a GitStore at a specific commit.
Returns the SHA-1 of the commit.
Returns the Git::PurePerl::Object::Commit object containing the file revision.
Returns the commit time of the revision as a DateTime object.
Returns the commit message of the revision. Note that the message might have additional trailing carriage returns.
Returns the path of the GitStore object.
Returns the content of the object. If the object is a frozen ref, the structure will be returned, like for `GitStore`'s `get()`.
Fayland Lam <fayland@gmail.com>
Yanick Champoux <yanick@cpan.org>
This software is copyright (c) 2015 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.
To install GitStore, copy and paste the appropriate command in to your terminal.
cpanm
cpanm GitStore
CPAN shell
perl -MCPAN -e shell install GitStore
For more information on module installation, please visit the detailed CPAN module installation guide.