1
0
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:
Chris McDonnell
2025-03-15 23:12:39 -04:00
committed by Stefan Haller
parent 6fb3b7430c
commit f779a5878d
5 changed files with 28 additions and 10 deletions

View File

@ -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)
}