diff options
Diffstat (limited to 'vendor/github.com/gogits/git-module/commit.go')
-rw-r--r-- | vendor/github.com/gogits/git-module/commit.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vendor/github.com/gogits/git-module/commit.go b/vendor/github.com/gogits/git-module/commit.go index d9a7b582..b68a6b97 100644 --- a/vendor/github.com/gogits/git-module/commit.go +++ b/vendor/github.com/gogits/git-module/commit.go @@ -170,8 +170,12 @@ func (c *Commit) CommitsCount() (int64, error) { return CommitsCount(c.repo.Path, c.ID.String()) } +func (c *Commit) CommitsByRangeSize(page, size int) (*list.List, error) { + return c.repo.CommitsByRangeSize(c.ID.String(), page, size) +} + func (c *Commit) CommitsByRange(page int) (*list.List, error) { - return c.repo.commitsByRange(c.ID, page) + return c.repo.CommitsByRange(c.ID.String(), page) } func (c *Commit) CommitsBefore() (*list.List, error) { |