vendor: update github.com/gogs/git-module

This commit is contained in:
Unknwon
2018-05-27 21:43:24 +08:00
parent b5a1daa756
commit 702acc06d8
5 changed files with 40 additions and 22 deletions

View File

@@ -163,11 +163,6 @@ func commitsCount(repoPath, revision, relpath string) (int64, error) {
return strconv.ParseInt(strings.TrimSpace(stdout), 10, 64)
}
// CommitsCount returns number of total commits of until given revision.
func CommitsCount(repoPath, revision string) (int64, error) {
return commitsCount(repoPath, revision, "")
}
func (c *Commit) CommitsCount() (int64, error) {
return CommitsCount(c.repo.Path, c.ID.String())
}