enhance: remember the last selection of Use rebase instead of merge on pull for each repository (#185)

This commit is contained in:
leo 2024-06-19 15:36:49 +08:00
parent a717e48a29
commit dcc63e187b
No known key found for this signature in database
2 changed files with 9 additions and 3 deletions

View file

@ -55,9 +55,9 @@ namespace SourceGit.ViewModels
public bool UseRebase public bool UseRebase
{ {
get; get => _repo.PreferRebaseInsteadOfMerge;
set; set => _repo.PreferRebaseInsteadOfMerge = value;
} = true; }
public Pull(Repository repo, Models.Branch specifiedRemoteBranch) public Pull(Repository repo, Models.Branch specifiedRemoteBranch)
{ {

View file

@ -39,6 +39,12 @@ namespace SourceGit.ViewModels
set => SetProperty(ref _gitDir, value); set => SetProperty(ref _gitDir, value);
} }
public bool PreferRebaseInsteadOfMerge
{
get;
set;
} = true;
public AvaloniaList<string> Filters public AvaloniaList<string> Filters
{ {
get; get;