From 30a555b108ddf85d53ea26013e590027660ac5da Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Sat, 22 Aug 2020 17:17:08 +1000 Subject: don't needlessly load every file --- pkg/commands/git.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'pkg/commands/git.go') diff --git a/pkg/commands/git.go b/pkg/commands/git.go index 6db81e652..3a38bce13 100644 --- a/pkg/commands/git.go +++ b/pkg/commands/git.go @@ -1077,12 +1077,7 @@ func (c *GitCommand) GetCommitFilesFromFilenames(filenames string, parent string for _, file := range strings.Split(strings.TrimRight(filenames, "\n"), "\n") { status := patch.UNSELECTED if patchManager != nil && patchManager.Parent == parent { - var err error - status, err = patchManager.GetFileStatus(file) - if err != nil { - c.Log.Error(err) - continue - } + status = patchManager.GetFileStatus(file) } commitFiles = append(commitFiles, &CommitFile{ -- cgit v1.2.3