public function Github_Api_Object::showTree in Bibliography Module 7.2
Get a listing of the root tree of a project by the username, repo, and tree SHA http://develop.github.com/p/object.html#trees
Parameters
string $username the username:
string $repo the repo:
string $treeSHA the tree sha:
Return value
array root tree of the project
File
- modules/
CiteProc/ Github/ Api/ Object.php, line 21
Class
- Github_Api_Object
- Getting full versions of specific files and trees in your Git repositories.
Code
public function showTree($username, $repo, $treeSHA) {
$response = $this
->get('tree/show/' . urlencode($username) . '/' . urlencode($repo) . '/' . urlencode($treeSHA));
return $response['tree'];
}