diff options
author | Joel Baranick <joel.baranick@ensighten.com> | 2022-09-01 23:50:34 -0700 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2023-07-30 18:35:21 +1000 |
commit | 60872c91e6fa054d0c7fa4b09df8d9aa572702ff (patch) | |
tree | 4172cca5d22fec7b88fdf43dc7926da55c22c14b /pkg/gui/controllers.go | |
parent | afc4aedd4f20c0b6fb021e95bf45e1d867315560 (diff) |
Update status to differentiate the main vs linked worktrees
Diffstat (limited to 'pkg/gui/controllers.go')
-rw-r--r-- | pkg/gui/controllers.go | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/pkg/gui/controllers.go b/pkg/gui/controllers.go index 328620d48..c883c3cc5 100644 --- a/pkg/gui/controllers.go +++ b/pkg/gui/controllers.go @@ -45,7 +45,17 @@ func (gui *Gui) resetHelpersAndControllers() { patchBuildingHelper := helpers.NewPatchBuildingHelper(helperCommon) stagingHelper := helpers.NewStagingHelper(helperCommon) mergeConflictsHelper := helpers.NewMergeConflictsHelper(helperCommon) - refreshHelper := helpers.NewRefreshHelper(helperCommon, refsHelper, rebaseHelper, patchBuildingHelper, stagingHelper, mergeConflictsHelper, gui.fileWatcher) + worktreeHelper := helpers.NewWorktreeHelper(helperCommon) + refreshHelper := helpers.NewRefreshHelper( + helperCommon, + refsHelper, + rebaseHelper, + patchBuildingHelper, + stagingHelper, + mergeConflictsHelper, + worktreeHelper, + gui.fileWatcher, + ) diffHelper := helpers.NewDiffHelper(helperCommon) cherryPickHelper := helpers.NewCherryPickHelper( helperCommon, @@ -99,7 +109,8 @@ func (gui *Gui) resetHelpersAndControllers() { modeHelper, appStatusHelper, ), - Search: helpers.NewSearchHelper(helperCommon), + Search: helpers.NewSearchHelper(helperCommon), + Worktree: worktreeHelper, } gui.CustomCommandsClient = custom_commands.NewClient( |