Commit pagination now with proper last page. Thanks @kulbirsaini!

This commit is contained in:
Klaus Silveira
2012-05-23 04:06:31 -03:00
parent b09076c37a
commit b5ba7959d7
3 changed files with 25 additions and 7 deletions

View File

@@ -215,6 +215,18 @@ class Repository
return $tags;
}
/**
* Show the amount of commits on the repository
*
* @access public
* @return integer Total number of commits
*/
public function getTotalCommits()
{
$commits = $this->getClient()->run($this, "rev-list --all --count");
return $commits;
}
/**
* Show the repository commit log