MCPcopy
hub / github.com/jesseduffield/lazygit / EmptyCommitWithDate

Method EmptyCommitWithDate

pkg/integration/components/shell.go:189–195  ·  view source on GitHub ↗
(message string, date string)

Source from the content-addressed store, hash-verified

187}
188
189func (self *Shell) EmptyCommitWithDate(message string, date string) *Shell {
190 env := []string{
191 "GIT_AUTHOR_DATE=" + date,
192 "GIT_COMMITTER_DATE=" + date,
193 }
194 return self.RunCommandWithEnv([]string{"git", "commit", "--allow-empty", "-m", message}, env)
195}
196
197func (self *Shell) Revert(ref string) *Shell {
198 return self.RunCommand([]string{"git", "revert", ref})

Calls 1

RunCommandWithEnvMethod · 0.95

Tested by

no test coverage detected