enhance: force enable --patch option

This commit is contained in:
leo 2024-10-17 19:20:14 +08:00
parent 9e14327f3c
commit 3da52208ba
No known key found for this signature in database

View file

@ -24,9 +24,9 @@ namespace SourceGit.Commands
Context = repo;
if (ignoreWhitespace)
Args = $"diff --ignore-cr-at-eol --ignore-all-space --unified={unified} {opt}";
Args = $"diff --patch --ignore-cr-at-eol --ignore-all-space --unified={unified} {opt}";
else
Args = $"diff --ignore-cr-at-eol --unified={unified} {opt}";
Args = $"diff --patch --ignore-cr-at-eol --unified={unified} {opt}";
}
public Models.DiffResult Result()