lib/Github/Api/GitData/Trees.php
public function show($username, $repository, $sha, $recursive = false)
    {
        return $this->get('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/git/trees/'.rawurlencode($sha), $recursive ? ['recursive' => 1] : []);
    }
public function show($username, $repository, $sha, $recursive = false)
    {
        return $this->get('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/git/trees/'.rawurlencode($sha), $recursive ? ['recursive' => 1] : []);
    }
public function show ( $ username , $ repository , $ sha , $ recursive = false ) { return $ this -> get ( '/repos/' . rawurlencode ( $ username ) . '/' . rawurlencode ( $ repository ) . '/git/trees/' . rawurlencode ( $ sha ) , $ recursive ? [ 'recursive' => 1 ] : [ ] ) ; }
Get the tree for a repository.

@param string $username
@param string $repository
@param string $sha
@param bool   $recursive

@return array
Get the tree for a repository .