summaryrefslogtreecommitdiffstats
path: root/pkg/gui/gui.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-02-06 13:42:17 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-03-17 19:13:40 +1100
commitcd31a762b97c071fbd33ea9b82f679890e68eaa7 (patch)
tree7533f1bd20578fa81a8f8cea8772a2397dc0864a /pkg/gui/gui.go
parentd82f175e79f18756769d91de94458b095130297c (diff)
rename OSCommand field to os
Diffstat (limited to 'pkg/gui/gui.go')
-rw-r--r--pkg/gui/gui.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go
index 3cc6129e3..9038fe647 100644
--- a/pkg/gui/gui.go
+++ b/pkg/gui/gui.go
@@ -83,9 +83,9 @@ type Repo string
// Gui wraps the gocui Gui object which handles rendering and events
type Gui struct {
*common.Common
- g *gocui.Gui
- git *commands.GitCommand
- OSCommand *oscommands.OSCommand
+ g *gocui.Gui
+ git *commands.GitCommand
+ os *oscommands.OSCommand
// this is the state of the GUI for the current repo
State *GuiRepoState
@@ -318,7 +318,7 @@ func (gui *Gui) onNewRepo(filterPath string, reuseState bool) error {
var err error
gui.git, err = commands.NewGitCommand(
gui.Common,
- gui.OSCommand,
+ gui.os,
git_config.NewStdCachedGitConfig(gui.Log),
gui.Mutexes.SyncMutex,
)
@@ -479,7 +479,7 @@ func NewGui(
osCommand := oscommands.NewOSCommand(cmn, oscommands.GetPlatform(), guiIO)
- gui.OSCommand = osCommand
+ gui.os = osCommand
gui.watchFilesForChanges()
@@ -509,7 +509,7 @@ func NewGui(
func (gui *Gui) resetControllers() {
controllerCommon := gui.c
- osCommand := gui.OSCommand
+ osCommand := gui.os
rebaseHelper := controllers.NewRebaseHelper(controllerCommon, gui.State.Contexts, gui.git, gui.takeOverMergeConflictScrolling)
model := gui.State.Model
gui.helpers = &Helpers{
@@ -977,7 +977,7 @@ func (gui *Gui) loadNewRepo() error {
return err
}
- if err := gui.OSCommand.UpdateWindowTitle(); err != nil {
+ if err := gui.os.UpdateWindowTitle(); err != nil {
return err
}