diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-22 16:47:40 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 14:29:18 +1000 |
commit | 8be970e6880c00afd65ed83da3c92a7131756af5 (patch) | |
tree | b461c5657955a28a7e3bfdb17b37d9ee46a75e20 /pkg/gui | |
parent | 12bf851c7d595f077260be03c8e298646dd333ce (diff) |
stop loading all the diffs at once now that we load them as we go
Diffstat (limited to 'pkg/gui')
-rw-r--r-- | pkg/gui/commit_files_panel.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/pkg/gui/commit_files_panel.go b/pkg/gui/commit_files_panel.go index 5f8a2e093..134607434 100644 --- a/pkg/gui/commit_files_panel.go +++ b/pkg/gui/commit_files_panel.go @@ -184,16 +184,6 @@ func (gui *Gui) handleToggleFileForPatch(g *gocui.Gui, v *gocui.View) error { } func (gui *Gui) startPatchManager() error { - diffMap := map[string]string{} - // TODO: only load these files as we need to - for _, commitFile := range gui.State.CommitFiles { - commitText, err := gui.GitCommand.ShowCommitFile(commitFile.Parent, commitFile.Name, true) - if err != nil { - return err - } - diffMap[commitFile.Name] = commitText - } - canRebase := gui.State.Panels.CommitFiles.refType == REF_TYPE_LOCAL_COMMIT gui.GitCommand.PatchManager.Start(gui.State.Panels.CommitFiles.refName, canRebase) return nil |