From be0dd29e3ac0809f9286925a8e622f6453170c11 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Sun, 29 Mar 2020 17:35:30 +1100 Subject: [PATCH] don't support files until we understand the use case --- pkg/gui/diffing.go | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/pkg/gui/diffing.go b/pkg/gui/diffing.go index a42b6b335..bf248918d 100644 --- a/pkg/gui/diffing.go +++ b/pkg/gui/diffing.go @@ -40,15 +40,17 @@ func (gui *Gui) currentDiffTerminals() []string { names := []string{} switch gui.g.CurrentView().Name() { case "files": - file, err := gui.getSelectedFile() - if err == nil { - names = append(names, file.Name) - } + // not supporting files for now + // file, err := gui.getSelectedFile() + // if err == nil { + // names = append(names, file.Name) + // } case "commitFiles": - file := gui.getSelectedCommitFile() - if file != nil { - names = append(names, file.Name) - } + // not supporting commit files for now + // file := gui.getSelectedCommitFile() + // if file != nil { + // names = append(names, file.Name) + // } case "commits": var commit *commands.Commit switch gui.getCommitsView().Context {