From 5c4bc3c848fb4bd46ad5ceeacd82cdfa8f2b5635 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sat, 26 Jul 2014 02:28:04 -0400 Subject: Huge updates!!!!! Be careful to merge!!!! --- modules/git/commit.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'modules/git/commit.go') diff --git a/modules/git/commit.go b/modules/git/commit.go index f61f2927..52348fef 100644 --- a/modules/git/commit.go +++ b/modules/git/commit.go @@ -73,6 +73,14 @@ func (c *Commit) CommitsCount() (int, error) { return c.repo.commitsCount(c.Id) } +func (c *Commit) SearchCommits(keyword string) (*list.List, error) { + return c.repo.searchCommits(c.Id, keyword) +} + +func (c *Commit) CommitsByRange(page int) (*list.List, error) { + return c.repo.commitsByRange(c.Id, page) +} + func (c *Commit) GetCommitOfRelPath(relPath string) (*Commit, error) { return c.repo.getCommitOfRelPath(c.Id, relPath) } -- cgit v1.2.3