1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-08-10 22:42:00 +02:00

better wording again

This commit is contained in:
Jesse Duffield
2022-03-26 17:08:23 +11:00
parent e0b05f4464
commit e039429885
2 changed files with 4 additions and 4 deletions

View File

@@ -131,7 +131,7 @@ func (gui *Gui) resetControllers() {
setSubCommits := func(commits []*models.Commit) { gui.State.Model.SubCommits = commits } 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.Branches,
gui.State.Contexts.RemoteBranches, gui.State.Contexts.RemoteBranches,
gui.State.Contexts.Tags, gui.State.Contexts.Tags,

View File

@@ -8,7 +8,7 @@ import (
var _ types.IController = &SwitchToSubCommitsController{} var _ types.IController = &SwitchToSubCommitsController{}
type ContextWithRefName interface { type CanSwitchToSubCommits interface {
types.Context types.Context
GetSelectedRefName() string GetSelectedRefName() string
} }
@@ -16,7 +16,7 @@ type ContextWithRefName interface {
type SwitchToSubCommitsController struct { type SwitchToSubCommitsController struct {
baseController baseController
*controllerCommon *controllerCommon
context ContextWithRefName context CanSwitchToSubCommits
setSubCommits func([]*models.Commit) setSubCommits func([]*models.Commit)
} }
@@ -24,7 +24,7 @@ type SwitchToSubCommitsController struct {
func NewSwitchToSubCommitsController( func NewSwitchToSubCommitsController(
controllerCommon *controllerCommon, controllerCommon *controllerCommon,
setSubCommits func([]*models.Commit), setSubCommits func([]*models.Commit),
context ContextWithRefName, context CanSwitchToSubCommits,
) *SwitchToSubCommitsController { ) *SwitchToSubCommitsController {
return &SwitchToSubCommitsController{ return &SwitchToSubCommitsController{
baseController: baseController{}, baseController: baseController{},