mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-18 03:30:55 +01:00
Commit pagination now with proper last page. Thanks @kulbirsaini!
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user