diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-07 20:33:34 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-09 14:09:53 +1100 |
commit | ee8ff6512f50803a70a8ad8919dbfa6aa6ea089b (patch) | |
tree | 37f1fa95893eaac47c8109fadb997dc9994a8abe /pkg/gui/git_flow.go | |
parent | e8229f0ee0eafb2d94674a091cb7a8776468e9c1 (diff) |
trim down gitcommand struct some more
Diffstat (limited to 'pkg/gui/git_flow.go')
-rw-r--r-- | pkg/gui/git_flow.go | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/pkg/gui/git_flow.go b/pkg/gui/git_flow.go index 959f22788..842f6c0cd 100644 --- a/pkg/gui/git_flow.go +++ b/pkg/gui/git_flow.go @@ -6,16 +6,6 @@ import ( "github.com/jesseduffield/lazygit/pkg/utils" ) -func (gui *Gui) gitFlowFinishBranch(branchName string) error { - cmdObj, err := gui.GitCommand.Flow.FinishCmdObj(branchName) - if err != nil { - return gui.surfaceError(err) - } - - gui.logAction(gui.Tr.Actions.GitFlowFinish) - return gui.runSubprocessWithSuspenseAndRefresh(cmdObj) -} - func (gui *Gui) handleCreateGitFlowMenu() error { branch := gui.getSelectedBranch() if branch == nil { @@ -70,3 +60,13 @@ func (gui *Gui) handleCreateGitFlowMenu() error { return gui.createMenu("git flow", menuItems, createMenuOptions{}) } + +func (gui *Gui) gitFlowFinishBranch(branchName string) error { + cmdObj, err := gui.GitCommand.Flow.FinishCmdObj(branchName) + if err != nil { + return gui.surfaceError(err) + } + + gui.logAction(gui.Tr.Actions.GitFlowFinish) + return gui.runSubprocessWithSuspenseAndRefresh(cmdObj) +} |