1
0
mirror of https://github.com/go-gitea/git.git synced 2026-02-05 06:45:03 +01:00

readboferelimit

This commit is contained in:
Unknwon
2015-12-10 16:28:22 -05:00
parent 4cc1cbbfea
commit 1ffc4bc36d
2 changed files with 31 additions and 16 deletions

View File

@@ -164,6 +164,10 @@ func (c *Commit) CommitsBefore() (*list.List, error) {
return c.repo.getCommitsBefore(c.ID)
}
func (c *Commit) CommitsBeforeLimit(num int) (*list.List, error) {
return c.repo.getCommitsBeforeLimit(c.ID, num)
}
func (c *Commit) CommitsBeforeUntil(commitID string) (*list.List, error) {
endCommit, err := c.repo.GetCommit(commitID)
if err != nil {