From 9a6c671a964f19df393ab223a5e4429a351bddd5 Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 22 Apr 2025 16:50:46 +0800 Subject: [PATCH] refactor: `--ignore-cr-at-eol` is not necessary when `--ignore-all-space` is enabled Signed-off-by: leo --- src/Commands/Diff.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/Diff.cs b/src/Commands/Diff.cs index 8df8cbaa..1434c1a5 100644 --- a/src/Commands/Diff.cs +++ b/src/Commands/Diff.cs @@ -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}"; }