summaryrefslogtreecommitdiffstats
path: root/pkg/gui/controllers/reflog_commits_controller.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2023-03-23 18:47:29 +1100
committerJesse Duffield <jessedduffield@gmail.com>2023-04-30 13:19:53 +1000
commitdb12853bbe825d69686ea71161497d1bbb120b8e (patch)
treeebfb066dfef8eb75acdc1ea2bd5f15ff4f4a6507 /pkg/gui/controllers/reflog_commits_controller.go
parent711674f6cd68ed3a35e5b0329ff0cf3289fbc7d1 (diff)
lots of changes
Diffstat (limited to 'pkg/gui/controllers/reflog_commits_controller.go')
-rw-r--r--pkg/gui/controllers/reflog_commits_controller.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/pkg/gui/controllers/reflog_commits_controller.go b/pkg/gui/controllers/reflog_commits_controller.go
index ddc34a263..735e0434f 100644
--- a/pkg/gui/controllers/reflog_commits_controller.go
+++ b/pkg/gui/controllers/reflog_commits_controller.go
@@ -7,17 +7,17 @@ import (
type ReflogCommitsController struct {
baseController
- *controllerCommon
+ c *ControllerCommon
}
var _ types.IController = &ReflogCommitsController{}
func NewReflogCommitsController(
- common *controllerCommon,
+ common *ControllerCommon,
) *ReflogCommitsController {
return &ReflogCommitsController{
- baseController: baseController{},
- controllerCommon: common,
+ baseController: baseController{},
+ c: common,
}
}
@@ -31,7 +31,7 @@ func (self *ReflogCommitsController) context() *context.ReflogCommitsContext {
func (self *ReflogCommitsController) GetOnRenderToMain() func() error {
return func() error {
- return self.helpers.Diff.WithDiffModeCheck(func() error {
+ return self.c.Helpers().Diff.WithDiffModeCheck(func() error {
commit := self.context().GetSelected()
var task types.UpdateTask
if commit == nil {