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

Method EmptyCommit

pkg/integration/components/shell.go:177–179  ·  view source on GitHub ↗
(message string)

Source from the content-addressed store, hash-verified

175}
176
177func (self *Shell) EmptyCommit(message string) *Shell {
178 return self.RunCommand([]string{"git", "commit", "--allow-empty", "-m", message})
179}
180
181func (self *Shell) EmptyCommitWithBody(subject string, body string) *Shell {
182 return self.RunCommand([]string{"git", "commit", "--allow-empty", "-m", subject, "-m", body})

Calls 1

RunCommandMethod · 0.95

Tested by

no test coverage detected