Franck Cuny > Net-GitHub-0.22 > Net::GitHub::V2::Commits

Download:
Net-GitHub-0.22.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  3
View/Report Bugs
Module Version: 0.13   Source  

NAME ^

Net::GitHub::V2::Commits - GitHub Commits API

SYNOPSIS ^

    use Net::GitHub::V2::Commits;

    my $commit = Net::GitHub::V2::Commits->new();

DESCRIPTION ^

http://develop.github.com/p/commits.html

METHODS ^

branch
    my $commits = $commit->branch(); # default as 'master'
    my $commits = $commit->branch('v2');

list commits for a branch

file($branch, $file)
    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')

show
    my $co_detail = $commit->show( '0e2e9d452f807f4b7138ae707e84577c10891d0c' );

get the changes introduced on a specific commit

AUTHOR ^

Fayland Lam, <fayland at gmail.com>

COPYRIGHT & LICENSE ^

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.

syntax highlighting: