diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2019-11-16 17:35:59 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2019-11-21 22:07:14 +1100 |
commit | 986abc1e45e314e68beb7c0ba92804e60c99310b (patch) | |
tree | 788b7f689a051c414bec231489279f0f41a949bd /pkg/gui/list_view.go | |
parent | 61dac10bb94874800d7b955c875cbcc3b3efa546 (diff) |
support viewing a remote branch
Diffstat (limited to 'pkg/gui/list_view.go')
-rw-r--r-- | pkg/gui/list_view.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkg/gui/list_view.go b/pkg/gui/list_view.go index 98dd9414e..bdfa33f1c 100644 --- a/pkg/gui/list_view.go +++ b/pkg/gui/list_view.go @@ -76,6 +76,15 @@ func (gui *Gui) getListViews() []*listView { rendersToMainView: true, }, { + viewName: "branches", + context: "remote-branches", + getItemsLength: func() int { return len(gui.State.RemoteBranches) }, + getSelectedLine: func() *int { return &gui.State.Panels.RemoteBranches.SelectedLine }, + handleItemSelect: gui.handleRemoteBranchSelect, + gui: gui, + rendersToMainView: true, + }, + { viewName: "commits", getItemsLength: func() int { return len(gui.State.Commits) }, getSelectedLine: func() *int { return &gui.State.Panels.Commits.SelectedLine }, |