diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-08 14:10:01 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-09 14:09:53 +1100 |
commit | 364c5db19cd8bc50f5142bcced1596a180b1499e (patch) | |
tree | d627878af6ff9bd87d6e90190f179628161d29d8 /pkg/gui/remotes_panel.go | |
parent | c9a0cc6b30dca6ff6c520268c10afff4e99a68e9 (diff) |
shorten name
Diffstat (limited to 'pkg/gui/remotes_panel.go')
-rw-r--r-- | pkg/gui/remotes_panel.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pkg/gui/remotes_panel.go b/pkg/gui/remotes_panel.go index 384a34beb..c74653a27 100644 --- a/pkg/gui/remotes_panel.go +++ b/pkg/gui/remotes_panel.go @@ -40,7 +40,7 @@ func (gui *Gui) remotesRenderToMain() error { func (gui *Gui) refreshRemotes() error { prevSelectedRemote := gui.getSelectedRemote() - remotes, err := gui.GitCommand.Loaders.Remotes.GetRemotes() + remotes, err := gui.Git.Loaders.Remotes.GetRemotes() if err != nil { return gui.surfaceError(err) } @@ -86,7 +86,7 @@ func (gui *Gui) handleAddRemote() error { title: gui.Tr.LcNewRemoteUrl, handleConfirm: func(remoteUrl string) error { gui.logAction(gui.Tr.Actions.AddRemote) - if err := gui.GitCommand.Remote.AddRemote(remoteName, remoteUrl); err != nil { + if err := gui.Git.Remote.AddRemote(remoteName, remoteUrl); err != nil { return err } return gui.refreshSidePanels(refreshOptions{scope: []RefreshableView{REMOTES}}) @@ -108,7 +108,7 @@ func (gui *Gui) handleRemoveRemote() error { prompt: gui.Tr.LcRemoveRemotePrompt + " '" + remote.Name + "'?", handleConfirm: func() error { gui.logAction(gui.Tr.Actions.RemoveRemote) - if err := gui.GitCommand.Remote.RemoveRemote(remote.Name); err != nil { + if err := gui.Git.Remote.RemoveRemote(remote.Name); err != nil { return gui.surfaceError(err) } @@ -136,7 +136,7 @@ func (gui *Gui) handleEditRemote() error { handleConfirm: func(updatedRemoteName string) error { if updatedRemoteName != remote.Name { gui.logAction(gui.Tr.Actions.UpdateRemote) - if err := gui.GitCommand.Remote.RenameRemote(remote.Name, updatedRemoteName); err != nil { + if err := gui.Git.Remote.RenameRemote(remote.Name, updatedRemoteName); err != nil { return gui.surfaceError(err) } } @@ -159,7 +159,7 @@ func (gui *Gui) handleEditRemote() error { initialContent: url, handleConfirm: func(updatedRemoteUrl string) error { gui.logAction(gui.Tr.Actions.UpdateRemote) - if err := gui.GitCommand.Remote.UpdateRemoteUrl(updatedRemoteName, updatedRemoteUrl); err != nil { + if err := gui.Git.Remote.UpdateRemoteUrl(updatedRemoteName, updatedRemoteUrl); err != nil { return gui.surfaceError(err) } return gui.refreshSidePanels(refreshOptions{scope: []RefreshableView{BRANCHES, REMOTES}}) @@ -179,7 +179,7 @@ func (gui *Gui) handleFetchRemote() error { gui.Mutexes.FetchMutex.Lock() defer gui.Mutexes.FetchMutex.Unlock() - err := gui.GitCommand.Sync.FetchRemote(remote.Name) + err := gui.Git.Sync.FetchRemote(remote.Name) gui.handleCredentialsPopup(err) return gui.refreshSidePanels(refreshOptions{scope: []RefreshableView{BRANCHES, REMOTES}}) |