Creates a commit with a random file Only to be used in demos
(message string)
| 347 | // Creates a commit with a random file |
| 348 | // Only to be used in demos |
| 349 | func (self *Shell) RandomChangeCommit(message string) *Shell { |
| 350 | index := self.randomFileContentIndex |
| 351 | self.randomFileContentIndex++ |
| 352 | randomFileName := fmt.Sprintf("random-%d.go", index) |
| 353 | self.CreateFileAndAdd(randomFileName, RandomFileContents[index%len(RandomFileContents)]) |
| 354 | return self.Commit(message) |
| 355 | } |
| 356 | |
| 357 | func (self *Shell) SetConfig(key string, value string) *Shell { |
| 358 | self.RunCommand([]string{"git", "config", "--local", key, value}) |
no test coverage detected