summaryrefslogtreecommitdiffstats
path: root/pkg/commands/files.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/commands/files.go')
-rw-r--r--pkg/commands/files.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/commands/files.go b/pkg/commands/files.go
index da451e80c..2d118c749 100644
--- a/pkg/commands/files.go
+++ b/pkg/commands/files.go
@@ -9,6 +9,7 @@ import (
"time"
"github.com/go-errors/errors"
+ "github.com/jesseduffield/lazygit/pkg/commands/loaders"
"github.com/jesseduffield/lazygit/pkg/commands/models"
"github.com/jesseduffield/lazygit/pkg/commands/oscommands"
"github.com/jesseduffield/lazygit/pkg/gui/filetree"
@@ -75,7 +76,10 @@ func (c *GitCommand) BeforeAndAfterFileForRename(file *models.File) (*models.Fil
// all files, passing the --no-renames flag and then recursively call the function
// again for the before file and after file.
- filesWithoutRenames := c.GetStatusFiles(GetStatusFileOptions{NoRenames: true})
+ filesWithoutRenames := loaders.
+ NewFileLoader(c.Common, c.Cmd, c.GitConfig).
+ GetStatusFiles(loaders.GetStatusFileOptions{NoRenames: true})
+
var beforeFile *models.File
var afterFile *models.File
for _, f := range filesWithoutRenames {