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

Method EmptyCommitWithBody

pkg/integration/components/shell.go:181–183  ·  view source on GitHub ↗
(subject string, body string)

Source from the content-addressed store, hash-verified

179}
180
181func (self *Shell) EmptyCommitWithBody(subject string, body string) *Shell {
182 return self.RunCommand([]string{"git", "commit", "--allow-empty", "-m", subject, "-m", body})
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})

Calls 1

RunCommandMethod · 0.95

Tested by

no test coverage detected