mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-15 00:15:32 +02:00
make amend more non-interactive
This commit is contained in:
committed by
Jesse Duffield
parent
ca5cbe4d44
commit
4cb50b15e4
@ -623,10 +623,12 @@ func (c *GitCommand) FastForward(branchName string, remoteName string, remoteBra
|
|||||||
|
|
||||||
func (c *GitCommand) RunSkipEditorCommand(command string) error {
|
func (c *GitCommand) RunSkipEditorCommand(command string) error {
|
||||||
cmd := c.OSCommand.ExecutableFromString(command)
|
cmd := c.OSCommand.ExecutableFromString(command)
|
||||||
|
lazyGitPath := c.OSCommand.GetLazygitPath()
|
||||||
cmd.Env = append(
|
cmd.Env = append(
|
||||||
cmd.Env,
|
cmd.Env,
|
||||||
"LAZYGIT_CLIENT_COMMAND=EXIT_IMMEDIATELY",
|
"LAZYGIT_CLIENT_COMMAND=EXIT_IMMEDIATELY",
|
||||||
"EDITOR="+c.OSCommand.GetLazygitPath(),
|
"EDITOR="+lazyGitPath,
|
||||||
|
"VISUAL="+lazyGitPath,
|
||||||
)
|
)
|
||||||
return c.OSCommand.RunExecutable(cmd)
|
return c.OSCommand.RunExecutable(cmd)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user