Showing the changes to modules/git/commit.go (1 of 54 files). Show all
Unified · Split
| @@ -263,6 +263,11 @@ func (c *Commit) GetFilesChangedSinceCommit(pastCommit string) ([]string, error) · 262 unmodified lines | ||
| 263 | 263 | return c.repo.getFilesChanged(pastCommit, c.ID.String()) |
| 264 | 264 | } |
| 265 | 265 | |
| 266 | +// FileChangedSinceCommit Returns true if the file given has changed since the the past commit | |
| 267 | +func (c *Commit) FileChangedSinceCommit(filename, pastCommit string) (bool, error) { | |
| 268 | + return c.repo.FileChangedBetweenCommits(filename, pastCommit, c.ID.String()) | |
| 269 | +} | |
| 270 | + | |
| 266 | 271 | // GetSubModules get all the sub modules of current revision git tree |
| 267 | 272 | func (c *Commit) GetSubModules() (*ObjectCache, error) { |
| 268 | 273 | if c.submoduleCache != nil { |