diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-02-13 18:26:44 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-17 19:13:40 +1100 |
commit | a643957f89c85fc304b78e3a6aad6e5c1a365d50 (patch) | |
tree | 1db3f278f230690ac9521e6d9f212b0dcbfa4bc9 /pkg/gui/gui.go | |
parent | e842d1bc9e2db9436fe968a9fad7aacca78570ea (diff) |
include stash in commitish controller
Diffstat (limited to 'pkg/gui/gui.go')
-rw-r--r-- | pkg/gui/gui.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index 77b406e6f..a31c781ed 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -580,17 +580,18 @@ func (gui *Gui) resetControllers() { controllers.AttachControllers(context, switchToSubCommitsControllerFactory.Create(context)) } - commonCommitControllerFactory := controllers.NewCommonCommitControllerFactory( + commitishControllerFactory := controllers.NewCommitishControllerFactory( common, gui.SwitchToCommitFilesContext, ) - for _, context := range []controllers.CommitContext{ + for _, context := range []controllers.Commitish{ gui.State.Contexts.LocalCommits, gui.State.Contexts.ReflogCommits, gui.State.Contexts.SubCommits, + gui.State.Contexts.Stash, } { - controllers.AttachControllers(context, commonCommitControllerFactory.Create(context)) + controllers.AttachControllers(context, commitishControllerFactory.Create(context)) } controllers.AttachControllers(gui.State.Contexts.Branches, branchesController, gitFlowController) |