diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-02-16 09:03:26 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-02-16 09:57:49 +1100 |
commit | 73d806483747f898bdfc1c7911253cd62092dc42 (patch) | |
tree | 93f475d0c63c731b602ba109b61ce327ae8e03ce /pkg/gui/branches_panel.go | |
parent | 5b1f60b7eb2b2a73f582b2add0843cc26068bae5 (diff) |
allow resetting to branch
Diffstat (limited to 'pkg/gui/branches_panel.go')
-rw-r--r-- | pkg/gui/branches_panel.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkg/gui/branches_panel.go b/pkg/gui/branches_panel.go index 8fa6b83ca..e4e7a432f 100644 --- a/pkg/gui/branches_panel.go +++ b/pkg/gui/branches_panel.go @@ -428,3 +428,12 @@ func (gui *Gui) handlePrevBranchesTab(g *gocui.Gui, v *gocui.View) error { utils.ModuloWithWrap(v.TabIndex-1, len(v.Tabs)), ) } + +func (gui *Gui) handleCreateResetToBranchMenu(g *gocui.Gui, v *gocui.View) error { + branch := gui.getSelectedBranch() + if branch == nil { + return nil + } + + return gui.createResetMenu(branch.Name) +} |