MCPcopy Index your code
hub / github.com/jesseduffield/lazygit / EmptyCommitDaysAgo

Method EmptyCommitDaysAgo

pkg/integration/components/shell.go:185–187  ·  view source on GitHub ↗
(message string, daysAgo int)

Source from the content-addressed store, hash-verified

183}
184
185func (self *Shell) EmptyCommitDaysAgo(message string, daysAgo int) *Shell {
186 return self.RunCommand([]string{"git", "commit", "--allow-empty", "--date", fmt.Sprintf("%d days ago", daysAgo), "-m", message})
187}
188
189func (self *Shell) EmptyCommitWithDate(message string, date string) *Shell {
190 env := []string{

Callers 2

CreateRepoHistoryMethod · 0.95
commonSetupFunction · 0.80

Calls 2

RunCommandMethod · 0.95
SprintfMethod · 0.65

Tested by

no test coverage detected