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

more helpers

This commit is contained in:
Unknwon
2015-11-27 02:15:42 -05:00
parent d86a90f801
commit 19510da781
2 changed files with 18 additions and 0 deletions

View File

@@ -24,6 +24,10 @@ type Commit struct {
// submodules map[string]*SubModule
}
func (c *Commit) GetCommitOfRelPath(relpath string) (*Commit, error) {
return c.repo.getCommitOfRelPath(c.ID, relpath)
}
// AddAllChanges marks local changes to be ready for commit.
func AddChanges(repoPath string, all bool, files ...string) error {
cmd := NewCommand("add")