From 3da52208bae0c2b06bc9e99aa24b7d7343faf341 Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 17 Oct 2024 19:20:14 +0800 Subject: [PATCH] enhance: force enable `--patch` option --- src/Commands/Diff.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Commands/Diff.cs b/src/Commands/Diff.cs index e3185781..b9b6e064 100644 --- a/src/Commands/Diff.cs +++ b/src/Commands/Diff.cs @@ -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()