public function compare($user, $repo, $base, $head)
	{
		// Build the request path.
		$path = '/repos/' . $user . '/' . $repo . '/compare/' . $base . '...' . $head;

		// Send the request.
		return $this->processResponse(
			$this->client->get($this->fetchUrl($path))
		);
	}
public function compare($user, $repo, $base, $head)
	{
		// Build the request path.
		$path = '/repos/' . $user . '/' . $repo . '/compare/' . $base . '...' . $head;

		// Send the request.
		return $this->processResponse(
			$this->client->get($this->fetchUrl($path))
		);
	}
public function compare ( $ user , $ repo , $ base , $ head ) { // Build the request path. $ path = '/repos/' . $ user . '/' . $ repo . '/compare/' . $ base . '...' . $ head ; // Send the request. return $ this -> processResponse ( $ this -> client -> get ( $ this -> fetchUrl ( $ path ) ) ) ; }
Method to get a diff for two commits.

@param   string  $user  The name of the owner of the GitHub repository.
@param   string  $repo  The name of the GitHub repository.
@param   string  $base  The base of the diff, either a commit SHA or branch.
@param   string  $head  The head of the diff, either a commit SHA or branch.

@return  array

@since   1.0
Method to get a diff for two commits .