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

@ -212,6 +212,19 @@ namespace SourceGit.ViewModels
set => SetProperty(ref _useSyntaxHighlighting, value);
}
public bool IgnoreCRAtEOLInDiff
{
get => Models.DiffOption.IgnoreCRAtEOL;
set
{
if (Models.DiffOption.IgnoreCRAtEOL != value)
{
Models.DiffOption.IgnoreCRAtEOL = value;
OnPropertyChanged();
}
}
}
public bool IgnoreWhitespaceChangesInDiff
{
get => _ignoreWhitespaceChangesInDiff;