public function all($account, $repo, array $params = array())
    {
        $endpoint = sprintf('repositories/%s/%s/commits', $account, $repo);

        if (!empty($params['branch'])) {
            $endpoint .= '/'.$params['branch']; // can also be a tag
            unset($params['branch']);
        }

        return $this->getClient()->setApiVersion('2.0')->get(
            $endpoint,
            $params
        );
    }