summaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-03-26 17:08:23 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-03-26 17:22:42 +1100
commite039429885996f1335430a856b846d8dc6279325 (patch)
treeb33c536d4cbf1d4f64fdb106ea60f396508cf580 /pkg
parente0b05f44647a22bd37515c3dfe1fb97a117716bb (diff)
better wording again
Diffstat (limited to 'pkg')
-rw-r--r--pkg/gui/controllers.go2
-rw-r--r--pkg/gui/controllers/switch_to_sub_commits_controller.go6
2 files changed, 4 insertions, 4 deletions
diff --git a/pkg/gui/controllers.go b/pkg/gui/controllers.go
index b0f100f2f..8e28e7f6e 100644
--- a/pkg/gui/controllers.go
+++ b/pkg/gui/controllers.go
@@ -131,7 +131,7 @@ func (gui *Gui) resetControllers() {
setSubCommits := func(commits []*models.Commit) { gui.State.Model.SubCommits = commits }
- for _, context := range []controllers.ContextWithRefName{
+ for _, context := range []controllers.CanSwitchToSubCommits{
gui.State.Contexts.Branches,
gui.State.Contexts.RemoteBranches,
gui.State.Contexts.Tags,
diff --git a/pkg/gui/controllers/switch_to_sub_commits_controller.go b/pkg/gui/controllers/switch_to_sub_commits_controller.go
index f7e9f6702..abd8642d3 100644
--- a/pkg/gui/controllers/switch_to_sub_commits_controller.go
+++ b/pkg/gui/controllers/switch_to_sub_commits_controller.go
@@ -8,7 +8,7 @@ import (
var _ types.IController = &SwitchToSubCommitsController{}
-type ContextWithRefName interface {
+type CanSwitchToSubCommits interface {
types.Context
GetSelectedRefName() string
}
@@ -16,7 +16,7 @@ type ContextWithRefName interface {
type SwitchToSubCommitsController struct {
baseController
*controllerCommon
- context ContextWithRefName
+ context CanSwitchToSubCommits
setSubCommits func([]*models.Commit)
}
@@ -24,7 +24,7 @@ type SwitchToSubCommitsController struct {
func NewSwitchToSubCommitsController(
controllerCommon *controllerCommon,
setSubCommits func([]*models.Commit),
- context ContextWithRefName,
+ context CanSwitchToSubCommits,
) *SwitchToSubCommitsController {
return &SwitchToSubCommitsController{
baseController: baseController{},