diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-22 09:55:49 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 14:29:18 +1000 |
commit | f63ec38aae9800a05d1b39977c8b51f6f1d4201c (patch) | |
tree | edf9faf72b0b14df16a8cc4a73c7ce12d0f2ef62 /pkg/gui/branches_panel.go | |
parent | f858c8e7509526b2e174e9aa83c54a4aea146b38 (diff) |
genericise creating new branches off things
Diffstat (limited to 'pkg/gui/branches_panel.go')
-rw-r--r-- | pkg/gui/branches_panel.go | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/pkg/gui/branches_panel.go b/pkg/gui/branches_panel.go index 17af8005e..358b094e8 100644 --- a/pkg/gui/branches_panel.go +++ b/pkg/gui/branches_panel.go @@ -221,22 +221,6 @@ func (gui *Gui) getCheckedOutBranch() *commands.Branch { return gui.State.Branches[0] } -func (gui *Gui) handleNewBranch(g *gocui.Gui, v *gocui.View) error { - branch := gui.getSelectedBranch() - if branch == nil { - return nil - } - message := gui.Tr.TemplateLocalize( - "NewBranchNameBranchOff", - Teml{ - "branchName": branch.Name, - }, - ) - return gui.prompt(v, message, "", func(response string) error { - return gui.createNewBranchWithName(response) - }) -} - func (gui *Gui) createNewBranchWithName(newBranchName string) error { branch := gui.getSelectedBranch() if branch == nil { |