mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-31 14:24:25 +03:00
refactor: Express WithGpgHelper with a config key parameter
This commit is contained in:
committed by
Stefan Haller
parent
6fb3b7430c
commit
f779a5878d
@ -1,5 +1,7 @@
|
||||
package helpers
|
||||
|
||||
import "github.com/jesseduffield/lazygit/pkg/commands/git_commands"
|
||||
|
||||
type AmendHelper struct {
|
||||
c *HelperCommon
|
||||
gpg *GpgHelper
|
||||
@ -18,5 +20,5 @@ func NewAmendHelper(
|
||||
func (self *AmendHelper) AmendHead() error {
|
||||
cmdObj := self.c.Git().Commit.AmendHeadCmdObj()
|
||||
self.c.LogAction(self.c.Tr.Actions.AmendCommit)
|
||||
return self.gpg.WithGpgHandling(cmdObj, self.c.Tr.AmendingStatus, nil)
|
||||
return self.gpg.WithGpgHandling(cmdObj, git_commands.CommitGpgSign, self.c.Tr.AmendingStatus, nil)
|
||||
}
|
||||
|
Reference in New Issue
Block a user