Net::GitHub::V2::Commits - GitHub Commits API
use Net::GitHub::V2::Commits; my $commit = Net::GitHub::V2::Commits->new();
http://develop.github.com/p/commits.html
my $commits = $commit->branch(); # default as 'master' my $commits = $commit->branch('v2');
list commits for a branch
my $commits = $commit->file( 'master', 'lib/Net/GitHub.pm' ); my $commits = $commit->file( 'lib/Net/GitHub.pm' ); # the same as above
get all the commits that modified the file (default $branch to 'master')
my $co_detail = $commit->show( '0e2e9d452f807f4b7138ae707e84577c10891d0c' );
get the changes introduced on a specific commit
Fayland Lam, <fayland at gmail.com>
<fayland at gmail.com>
Copyright 2009 Fayland Lam, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Net::GitHub, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::GitHub
CPAN shell
perl -MCPAN -e shell install Net::GitHub
For more information on module installation, please visit the detailed CPAN module installation guide.