summaryrefslogtreecommitdiffstats
path: root/pkg/commands/git_commands/commit_file_loader.go
diff options
context:
space:
mode:
authorStefan Haller <stefan@haller-berlin.de>2024-01-15 15:53:06 +0100
committerStefan Haller <stefan@haller-berlin.de>2024-02-18 15:22:43 +0100
commitd329c9255436316869560d2d96766bc62453d8c2 (patch)
tree729aa7369a4a8368fee3725a8e0fcbbe1a4e7fc8 /pkg/commands/git_commands/commit_file_loader.go
parentafbaf82395a76514333557453458a22ec736ad6e (diff)
Set diff.noprefix=false for all other diff commands too
This fixes problems with being able to stage things in a custom patch correctly.
Diffstat (limited to 'pkg/commands/git_commands/commit_file_loader.go')
-rw-r--r--pkg/commands/git_commands/commit_file_loader.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/commands/git_commands/commit_file_loader.go b/pkg/commands/git_commands/commit_file_loader.go
index 7abdc74c5..68faf31ca 100644
--- a/pkg/commands/git_commands/commit_file_loader.go
+++ b/pkg/commands/git_commands/commit_file_loader.go
@@ -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").