summaryrefslogtreecommitdiffstats
path: root/pkg/gui/git_flow.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-01-05 11:57:32 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-01-07 10:52:51 +1100
commit05fa483f4818d45b357187700079c3bdae663df2 (patch)
treefb4fe7d3fda3e8b3e3d862c7a5e1383de456fe60 /pkg/gui/git_flow.go
parente524e398423f8aea2961302287123085dcc5a524 (diff)
simplify how we log commands
Diffstat (limited to 'pkg/gui/git_flow.go')
-rw-r--r--pkg/gui/git_flow.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/gui/git_flow.go b/pkg/gui/git_flow.go
index 3c8066527..abf65fd59 100644
--- a/pkg/gui/git_flow.go
+++ b/pkg/gui/git_flow.go
@@ -31,8 +31,9 @@ func (gui *Gui) gitFlowFinishBranch(gitFlowConfig string, branchName string) err
return gui.createErrorPanel(gui.Tr.NotAGitFlowBranch)
}
+ gui.logSpan(gui.Tr.Spans.GitFlowFinish)
return gui.runSubprocessWithSuspenseAndRefresh(
- gui.GitCommand.WithSpan(gui.Tr.Spans.GitFlowFinish).Cmd.New("git flow " + branchType + " finish " + suffix).Log(),
+ gui.GitCommand.Cmd.New("git flow " + branchType + " finish " + suffix),
)
}
@@ -55,8 +56,9 @@ func (gui *Gui) handleCreateGitFlowMenu() error {
return gui.prompt(promptOpts{
title: title,
handleConfirm: func(name string) error {
+ gui.logSpan(gui.Tr.Spans.GitFlowStart)
return gui.runSubprocessWithSuspenseAndRefresh(
- gui.GitCommand.WithSpan(gui.Tr.Spans.GitFlowStart).Cmd.New("git flow " + branchType + " start " + name).Log(),
+ gui.GitCommand.Cmd.New("git flow " + branchType + " start " + name),
)
},
})