summaryrefslogtreecommitdiffstats
path: root/pkg/gui/controllers/helpers/amend_helper.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/controllers/helpers/amend_helper.go')
-rw-r--r--pkg/gui/controllers/helpers/amend_helper.go10
1 files changed, 3 insertions, 7 deletions
diff --git a/pkg/gui/controllers/helpers/amend_helper.go b/pkg/gui/controllers/helpers/amend_helper.go
index 29570d635..0e5216f83 100644
--- a/pkg/gui/controllers/helpers/amend_helper.go
+++ b/pkg/gui/controllers/helpers/amend_helper.go
@@ -1,24 +1,20 @@
package helpers
import (
- "github.com/jesseduffield/lazygit/pkg/commands"
"github.com/jesseduffield/lazygit/pkg/gui/types"
)
type AmendHelper struct {
- c *types.HelperCommon
- git *commands.GitCommand
+ c *HelperCommon
gpg *GpgHelper
}
func NewAmendHelper(
- c *types.HelperCommon,
- git *commands.GitCommand,
+ c *HelperCommon,
gpg *GpgHelper,
) *AmendHelper {
return &AmendHelper{
c: c,
- git: git,
gpg: gpg,
}
}
@@ -28,7 +24,7 @@ func (self *AmendHelper) AmendHead() error {
Title: self.c.Tr.AmendLastCommitTitle,
Prompt: self.c.Tr.SureToAmend,
HandleConfirm: func() error {
- cmdObj := self.git.Commit.AmendHeadCmdObj()
+ cmdObj := self.c.Git().Commit.AmendHeadCmdObj()
self.c.LogAction(self.c.Tr.Actions.AmendCommit)
return self.gpg.WithGpgHandling(cmdObj, self.c.Tr.AmendingStatus, nil)
},