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:
@@ -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,
|
||||||
|
@@ -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{},
|
||||||
|
Reference in New Issue
Block a user