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 }
|
||||
|
||||
for _, context := range []controllers.ContextWithRefName{
|
||||
for _, context := range []controllers.CanSwitchToSubCommits{
|
||||
gui.State.Contexts.Branches,
|
||||
gui.State.Contexts.RemoteBranches,
|
||||
gui.State.Contexts.Tags,
|
||||
|
@@ -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{},
|
||||
|
Reference in New Issue
Block a user