mirror of
https://github.com/gogs/gogs.git
synced 2025-12-21 15:50:00 +01:00
vendor: update github.com/gogs/git-module
This commit is contained in:
5
vendor/github.com/gogs/git-module/commit.go
generated
vendored
5
vendor/github.com/gogs/git-module/commit.go
generated
vendored
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user