diff --git a/pkg/commands/git_commands/patch.go b/pkg/commands/git_commands/patch.go index 77563ab88bb..90b14ed3ab0 100644 --- a/pkg/commands/git_commands/patch.go +++ b/pkg/commands/git_commands/patch.go @@ -71,6 +71,7 @@ func (self *PatchCommands) applyPatchFile(filepath string, opts ApplyPatchOpts) ArgIf(opts.Cached, "--cached"). ArgIf(opts.Index, "--index"). ArgIf(opts.Reverse, "--reverse"). + Arg("--unidiff-zero"). Arg(filepath). ToArgv()