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/stash_panel.go | |
parent | c9a0cc6b30dca6ff6c520268c10afff4e99a68e9 (diff) |
shorten name
Diffstat (limited to 'pkg/gui/stash_panel.go')
-rw-r--r-- | pkg/gui/stash_panel.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pkg/gui/stash_panel.go b/pkg/gui/stash_panel.go index 97e890a39..9b6760b7a 100644 --- a/pkg/gui/stash_panel.go +++ b/pkg/gui/stash_panel.go @@ -21,7 +21,7 @@ func (gui *Gui) stashRenderToMain() error { if stashEntry == nil { task = NewRenderStringTask(gui.Tr.NoStashEntries) } else { - task = NewRunPtyTask(gui.GitCommand.Stash.ShowStashEntryCmdObj(stashEntry.Index).GetCmd()) + task = NewRunPtyTask(gui.Git.Stash.ShowStashEntryCmdObj(stashEntry.Index).GetCmd()) } return gui.refreshMainViews(refreshMainOpts{ @@ -33,7 +33,7 @@ func (gui *Gui) stashRenderToMain() error { } func (gui *Gui) refreshStashEntries() error { - gui.State.StashEntries = gui.GitCommand.Loaders.Stash. + gui.State.StashEntries = gui.Git.Loaders.Stash. GetStashEntries(gui.State.Modes.Filtering.GetPath()) return gui.State.Contexts.Stash.HandleRender() @@ -51,7 +51,7 @@ func (gui *Gui) handleStashApply() error { apply := func() error { gui.logAction(gui.Tr.Actions.Stash) - if err := gui.GitCommand.Stash.Apply(stashEntry.Index); err != nil { + if err := gui.Git.Stash.Apply(stashEntry.Index); err != nil { return gui.surfaceError(err) } return gui.postStashRefresh() @@ -80,7 +80,7 @@ func (gui *Gui) handleStashPop() error { pop := func() error { gui.logAction(gui.Tr.Actions.Stash) - if err := gui.GitCommand.Stash.Pop(stashEntry.Index); err != nil { + if err := gui.Git.Stash.Pop(stashEntry.Index); err != nil { return gui.surfaceError(err) } return gui.postStashRefresh() @@ -110,7 +110,7 @@ func (gui *Gui) handleStashDrop() error { prompt: gui.Tr.SureDropStashEntry, handleConfirm: func() error { gui.logAction(gui.Tr.Actions.Stash) - if err := gui.GitCommand.Stash.Drop(stashEntry.Index); err != nil { + if err := gui.Git.Stash.Drop(stashEntry.Index); err != nil { return gui.surfaceError(err) } return gui.postStashRefresh() |