mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 04:34:59 +00:00
feature: supports to enable --ignore-cr-at-eol
in diff by default
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
586ff39da1
commit
f72f1894c3
6 changed files with 32 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue