*/ class Commits extends AbstractApi { public function all($username, $repository, array $params) { return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/commits', $params); } public function compare($username, $repository, $base, $head, $mediaType = NULL) { $headers = array(); if (NULL !== $mediaType) { $headers['Accept'] = $mediaType; } return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/compare/'.rawurlencode($base).'...'.rawurlencode($head), array(), $headers); } public function show($username, $repository, $sha) { return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/commits/'.rawurlencode($sha)); } }