diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-02-13 17:41:58 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-17 19:13:40 +1100 |
commit | 574c5ca0de046fc0572e722822db3bfbddff4d10 (patch) | |
tree | 19282b2bdffe1a2d09430a0e336c317ffa556a80 /pkg | |
parent | 1253100431a93dca4b4953f2d4bfe73d22e15645 (diff) |
add subcommits controller
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/gui/gui.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index e0f6eb41f..525521fc0 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -535,6 +535,7 @@ func (gui *Gui) resetControllers() { bisectController := controllers.NewBisectController(common) reflogController := controllers.NewReflogController(common, gui.SwitchToCommitFilesContext) + subCommitsController := controllers.NewSubCommitsController(common, gui.SwitchToCommitFilesContext) gui.Controllers = Controllers{ Submodules: submodulesController, @@ -583,6 +584,7 @@ func (gui *Gui) resetControllers() { controllers.AttachControllers(gui.State.Contexts.Submodules, gui.Controllers.Submodules) controllers.AttachControllers(gui.State.Contexts.LocalCommits, gui.Controllers.LocalCommits, bisectController) controllers.AttachControllers(gui.State.Contexts.ReflogCommits, reflogController) + controllers.AttachControllers(gui.State.Contexts.SubCommits, subCommitsController) controllers.AttachControllers(gui.State.Contexts.Remotes, gui.Controllers.Remotes) controllers.AttachControllers(gui.State.Contexts.Menu, gui.Controllers.Menu) controllers.AttachControllers(gui.State.Contexts.Global, gui.Controllers.Sync, gui.Controllers.Undo, gui.Controllers.Global) |