Net::GitHub::V2::Commits - GitHub Commits API
use Net::GitHub::V2::Commits; my $commit = Net::GitHub::V2::Commits->new();
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 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.