mirror of
https://github.com/go-gitea/git.git
synced 2026-02-05 06:45:03 +01:00
Added functions to handle checking out branches and moving files (#12)
* Adds functions to handle checking out branches and moving files Adds support for checking out a new branch Fix for branch pull requests * Adds methods to get files changes between two commits
This commit is contained in:
@@ -180,6 +180,10 @@ func (c *Commit) SearchCommits(keyword string) (*list.List, error) {
|
||||
return c.repo.searchCommits(c.ID, keyword)
|
||||
}
|
||||
|
||||
func (c *Commit) GetFilesChangedSinceCommit(pastCommit string) ([]string, error) {
|
||||
return c.repo.getFilesChanged(pastCommit, c.ID.String())
|
||||
}
|
||||
|
||||
func (c *Commit) GetSubModules() (*objectCache, error) {
|
||||
if c.submoduleCache != nil {
|
||||
return c.submoduleCache, nil
|
||||
|
||||
Reference in New Issue
Block a user