Net::GitHub::V2::Commits(3pm)

Net::GitHub::V2::Commits3pm

Github commits api

Usage

    use Net::GitHub::V2::Commits;
    my $github_commits = Net::GitHub::V2::Commits->new(
        owner => 'fayland',            # GitHub username/organisation
        repo  => 'perl-net-github',    # Repository name
    );

Overview

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

See also Net::GitHub for how to create a Net::GitHub object with the appropriate attributes, then get a "Net::GitHub::V2::Commits" object from it easily.

Methods

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

list commits for a branch

file($branch, $file)
    my $commits = $github_commits->file( 'master', 'lib/Net/GitHub.pm' );
    my $commits = $github_commits->file( 'lib/Net/GitHub.pm' ); # the same as above

get all the commits that modified the file (default $branch to 'master')

show
    my $commit = $github_commits->show( '9bd63ae2114e3c7e4279b81ab2d8d8947ab4011d' );

get the changes introduced on a specific commit

(As usual, the SHA can be abbreviated)

Releases

2 releases since Debian 6.0 (Squeeze); the text changed 1 time.

  1. 6.0
  2. 7

Author

Fayland Lam, "<fayland at gmail.com>"

From libnet-github-perl 0.46-1 in Debian 7 (Wheezy). Parsed by carta from the page's man source.