diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-28 10:27:34 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-28 11:59:45 +1100 |
commit | f7add8d788604743b334c72b784c487968b99867 (patch) | |
tree | 64c850b77954d15e5a2451ce4b6aa089cf578b11 /pkg/gui/gui.go | |
parent | d97c2307476253be353edc1ad85c2658c0f78ebe (diff) |
smarter refreshing for tags and remotes
Diffstat (limited to 'pkg/gui/gui.go')
-rw-r--r-- | pkg/gui/gui.go | 57 |
1 files changed, 29 insertions, 28 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index 03a0be81a..bb8121a2d 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -179,34 +179,35 @@ type searchingState struct { } type guiState struct { - Files []*commands.File - Branches []*commands.Branch - Commits []*commands.Commit - StashEntries []*commands.StashEntry - CommitFiles []*commands.CommitFile - ReflogCommits []*commands.Commit - DiffEntries []*commands.Commit - Remotes []*commands.Remote - RemoteBranches []*commands.RemoteBranch - Tags []*commands.Tag - MenuItemCount int // can't store the actual list because it's of interface{} type - PreviousView string - Platform commands.Platform - Updating bool - Panels *panelStates - MainContext string // used to keep the main and secondary views' contexts in sync - CherryPickedCommits []*commands.Commit - SplitMainPanel bool - RetainOriginalDir bool - IsRefreshingFiles bool - RefreshingFilesMutex sync.Mutex - Searching searchingState - ScreenMode int - SideView *gocui.View - Ptmx *os.File - PrevMainWidth int - PrevMainHeight int - OldInformation string + Files []*commands.File + Branches []*commands.Branch + Commits []*commands.Commit + StashEntries []*commands.StashEntry + CommitFiles []*commands.CommitFile + ReflogCommits []*commands.Commit + DiffEntries []*commands.Commit + Remotes []*commands.Remote + RemoteBranches []*commands.RemoteBranch + Tags []*commands.Tag + MenuItemCount int // can't store the actual list because it's of interface{} type + PreviousView string + Platform commands.Platform + Updating bool + Panels *panelStates + MainContext string // used to keep the main and secondary views' contexts in sync + CherryPickedCommits []*commands.Commit + SplitMainPanel bool + RetainOriginalDir bool + IsRefreshingFiles bool + RefreshingFilesMutex sync.Mutex + RefreshingStatusMutex sync.Mutex + Searching searchingState + ScreenMode int + SideView *gocui.View + Ptmx *os.File + PrevMainWidth int + PrevMainHeight int + OldInformation string } // for now the split view will always be on |