summaryrefslogtreecommitdiffstats
path: root/pkg/commands/git.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-08-22 17:17:08 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-08-23 14:29:18 +1000
commit30a555b108ddf85d53ea26013e590027660ac5da (patch)
tree6f44fb3df3d943307eedf99bf9a822bbdedfcf4f /pkg/commands/git.go
parent8be970e6880c00afd65ed83da3c92a7131756af5 (diff)
don't needlessly load every file
Diffstat (limited to 'pkg/commands/git.go')
-rw-r--r--pkg/commands/git.go7
1 files changed, 1 insertions, 6 deletions
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{