refactor: --ignore-cr-at-eol is not necessary when --ignore-all-space is enabled

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-04-22 16:50:46 +08:00
parent 34e0ea3bcb
commit 9a6c671a96
No known key found for this signature in database

View file

@ -28,7 +28,7 @@ namespace SourceGit.Commands
Context = repo;
if (ignoreWhitespace)
Args = $"-c core.autocrlf=false diff --no-ext-diff --patch --ignore-cr-at-eol --ignore-all-space --unified={unified} {opt}";
Args = $"-c core.autocrlf=false diff --no-ext-diff --patch --ignore-all-space --unified={unified} {opt}";
else
Args = $"-c core.autocrlf=false diff --no-ext-diff --patch --unified={unified} {opt}";
}