Net::GitHub::V2::Commits.3pm

Langue: en

Version: 2010-01-23 (ubuntu - 24/10/10)

Section: 3 (Bibliothèques de fonctions)

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 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.