Net::GitHub::V2::Object.3pm

Langue: en

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

Section: 3 (Bibliothèques de fonctions)

NAME

Net::GitHub::V2::Object - Git Object API

SYNOPSIS

     use Net::GitHub::V2::Object;
 
     my $obj = Net::GitHub::V2::Object->new(
         owner => 'fayland', repo => 'perl-net-github'
     );
 
 

DESCRIPTION

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

METHODS

tree
     my $tree = $obj->tree( $tree_sha1 );
 
 

get the contents of a tree by tree sha

blob
     my $blob = $obj->blob( $tree_sha1, 'lib/Net/GitHub.pm' );
 
 

get the data about a blob by tree sha and path

raw
     my $raw = $obj->raw( $sha1 );
 
 

get the contents of a blob (can be tree, file or commits)

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.