feature: supports to enable --ignore-cr-at-eol in diff by default

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-04-23 15:34:21 +08:00
parent 586ff39da1
commit f72f1894c3
No known key found for this signature in database
6 changed files with 32 additions and 1 deletions

View file

@ -29,6 +29,8 @@ namespace SourceGit.Commands
if (ignoreWhitespace)
Args = $"-c core.autocrlf=false diff --no-ext-diff --patch --ignore-all-space --unified={unified} {opt}";
else if (Models.DiffOption.IgnoreCRAtEOL)
Args = $"-c core.autocrlf=false diff --no-ext-diff --patch --ignore-cr-at-eol --unified={unified} {opt}";
else
Args = $"-c core.autocrlf=false diff --no-ext-diff --patch --unified={unified} {opt}";
}