diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-19 18:32:27 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-22 10:48:51 +1100 |
commit | 4ab5e5413944a92699a9540148666f0de26aa44b (patch) | |
tree | 58a4b648b5a4e5a6ed5f01b4e40ae5ba3c3ebad7 /pkg/gui/view_helpers.go | |
parent | ab84410b4155bcee73ead0e2a7510924575b1323 (diff) |
add support for git bisect
Diffstat (limited to 'pkg/gui/view_helpers.go')
-rw-r--r-- | pkg/gui/view_helpers.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/gui/view_helpers.go b/pkg/gui/view_helpers.go index 3f559b400..300571ad3 100644 --- a/pkg/gui/view_helpers.go +++ b/pkg/gui/view_helpers.go @@ -28,6 +28,8 @@ const ( REMOTES STATUS SUBMODULES + // not actually a view. Will refactor this later + BISECT_INFO ) func getScopeNames(scopes []RefreshableView) []string { @@ -105,12 +107,12 @@ func (gui *Gui) refreshSidePanels(options refreshOptions) error { f := func() { var scopeMap map[RefreshableView]bool if len(options.scope) == 0 { - scopeMap = arrToMap([]RefreshableView{COMMITS, BRANCHES, FILES, STASH, REFLOG, TAGS, REMOTES, STATUS}) + scopeMap = arrToMap([]RefreshableView{COMMITS, BRANCHES, FILES, STASH, REFLOG, TAGS, REMOTES, STATUS, BISECT_INFO}) } else { scopeMap = arrToMap(options.scope) } - if scopeMap[COMMITS] || scopeMap[BRANCHES] || scopeMap[REFLOG] { + if scopeMap[COMMITS] || scopeMap[BRANCHES] || scopeMap[REFLOG] || scopeMap[BISECT_INFO] { wg.Add(1) func() { if options.mode == ASYNC { |