1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-12 23:41:54 +03:00

Set diff.noprefix=false for all other diff commands too

This fixes problems with being able to stage things in a custom patch correctly.
This commit is contained in:
Stefan Haller
2024-01-15 15:53:06 +01:00
parent afbaf82395
commit d329c92554
6 changed files with 14 additions and 8 deletions

View File

@ -24,6 +24,7 @@ func NewCommitFileLoader(common *common.Common, cmd oscommands.ICmdObjBuilder) *
// GetFilesInDiff get the specified commit files
func (self *CommitFileLoader) GetFilesInDiff(from string, to string, reverse bool) ([]*models.CommitFile, error) {
cmdArgs := NewGitCmd("diff").
Config("diff.noprefix=false").
Arg("--submodule").
Arg("--no-ext-diff").
Arg("--name-status").