From 574c5ca0de046fc0572e722822db3bfbddff4d10 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Sun, 13 Feb 2022 17:41:58 +1100 Subject: [PATCH] add subcommits controller --- pkg/gui/gui.go | 2 ++ 1 file changed, 2 insertions(+) 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)