mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
enhance: unchange global core.autocrlf
is user do NOT set it yet (#297)
This commit is contained in:
parent
5c6e4a5d48
commit
9aa5787ce9
1 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ namespace SourceGit.Views
|
||||||
{
|
{
|
||||||
get;
|
get;
|
||||||
set;
|
set;
|
||||||
} = Models.CRLFMode.Supported[0];
|
} = null;
|
||||||
|
|
||||||
public static readonly StyledProperty<string> GitVersionProperty =
|
public static readonly StyledProperty<string> GitVersionProperty =
|
||||||
AvaloniaProperty.Register<Preference, string>(nameof(GitVersion));
|
AvaloniaProperty.Register<Preference, string>(nameof(GitVersion));
|
||||||
|
@ -195,7 +195,7 @@ namespace SourceGit.Views
|
||||||
SetIfChanged(config, "user.name", DefaultUser);
|
SetIfChanged(config, "user.name", DefaultUser);
|
||||||
SetIfChanged(config, "user.email", DefaultEmail);
|
SetIfChanged(config, "user.email", DefaultEmail);
|
||||||
SetIfChanged(config, "user.signingkey", GPGUserKey);
|
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, "commit.gpgsign", EnableGPGCommitSigning ? "true" : "false");
|
||||||
SetIfChanged(config, "tag.gpgsign", EnableGPGTagSigning ? "true" : "false");
|
SetIfChanged(config, "tag.gpgsign", EnableGPGTagSigning ? "true" : "false");
|
||||||
SetIfChanged(config, "gpg.format", GPGFormat.Value);
|
SetIfChanged(config, "gpg.format", GPGFormat.Value);
|
||||||
|
|
Loading…
Reference in a new issue