mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-21 21:30:37 +08:00
enhance: unchange global core.autocrlf is user do NOT set it yet (#297)
This commit is contained in:
@@ -41,7 +41,7 @@ namespace SourceGit.Views
|
||||
{
|
||||
get;
|
||||
set;
|
||||
} = Models.CRLFMode.Supported[0];
|
||||
} = null;
|
||||
|
||||
public static readonly StyledProperty<string> GitVersionProperty =
|
||||
AvaloniaProperty.Register<Preference, string>(nameof(GitVersion));
|
||||
@@ -195,7 +195,7 @@ namespace SourceGit.Views
|
||||
SetIfChanged(config, "user.name", DefaultUser);
|
||||
SetIfChanged(config, "user.email", DefaultEmail);
|
||||
SetIfChanged(config, "user.signingkey", GPGUserKey);
|
||||
SetIfChanged(config, "core.autocrlf", CRLFMode.Value);
|
||||
SetIfChanged(config, "core.autocrlf", CRLFMode != null ? CRLFMode.Value : null);
|
||||
SetIfChanged(config, "commit.gpgsign", EnableGPGCommitSigning ? "true" : "false");
|
||||
SetIfChanged(config, "tag.gpgsign", EnableGPGTagSigning ? "true" : "false");
|
||||
SetIfChanged(config, "gpg.format", GPGFormat.Value);
|
||||
|
||||
Reference in New Issue
Block a user