MCPcopy Create free account
hub / github.com/jesseduffield/lazygit / CreateNCommits

Method CreateNCommits

pkg/integration/components/shell.go:249–251  ·  view source on GitHub ↗

creates commits 01, 02, 03, ..., n with a new file in each The reason for padding with zeroes is so that it's easier to do string matches on the commit messages when there are many of them

(n int)

Source from the content-addressed store, hash-verified

247// The reason for padding with zeroes is so that it's easier to do string
248// matches on the commit messages when there are many of them
249func (self *Shell) CreateNCommits(n int) *Shell {
250 return self.CreateNCommitsStartingAt(n, 1)
251}
252
253func (self *Shell) CreateNCommitsStartingAt(n, startIndex int) *Shell {
254 for i := startIndex; i < startIndex+n; i++ {

Calls 1

Tested by

no test coverage detected