diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-29 13:56:03 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-29 18:26:24 +1100 |
commit | 33d287d2f0c6335559ac75c1b9a4705dfaa9ad7b (patch) | |
tree | 3e687983a7013ce2f02e471315755b6b54f4e956 /pkg/gui/gui.go | |
parent | 9eb1cbc51434697e4a7edac8bd14839847719af3 (diff) |
remove old diff mode code
Diffstat (limited to 'pkg/gui/gui.go')
-rw-r--r-- | pkg/gui/gui.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index 17ba0c00b..62e18f8fd 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -185,6 +185,12 @@ const ( COMPLETE ) +// if ref is blank we're not diffing anything +type DiffState struct { + Ref string + Left bool +} + type guiState struct { Files []*commands.File Branches []*commands.Branch @@ -198,7 +204,6 @@ type guiState struct { // if we're not in filtering mode, CommitFiles and FilteredReflogCommits will be // one and the same ReflogCommits []*commands.Commit - DiffEntries []*commands.Commit Remotes []*commands.Remote RemoteBranches []*commands.RemoteBranch Tags []*commands.Tag @@ -222,6 +227,7 @@ type guiState struct { OldInformation string StartupStage int // one of INITIAL and COMPLETE. Allows us to not load everything at once FilterPath string // the filename that gets passed to git log + Diff DiffState } func (gui *Gui) resetState() { @@ -239,7 +245,6 @@ func (gui *Gui) resetState() { ReflogCommits: make([]*commands.Commit, 0), CherryPickedCommits: make([]*commands.Commit, 0), StashEntries: make([]*commands.StashEntry, 0), - DiffEntries: make([]*commands.Commit, 0), Panels: &panelStates{ Files: &filePanelState{SelectedLine: -1}, Branches: &branchPanelState{SelectedLine: 0}, |