mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-21 13:20:30 +08:00
enhance: do not clear original history filters after checkout branch
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -103,7 +103,7 @@ namespace SourceGit.ViewModels
|
||||
|
||||
var b = _repo.Branches.Find(x => x.IsLocal && x.Name == Branch);
|
||||
if (b != null && _repo.HistoriesFilterMode == Models.FilterMode.Included)
|
||||
_repo.SetBranchFilterMode(b, Models.FilterMode.Included, true, false);
|
||||
_repo.SetBranchFilterMode(b, Models.FilterMode.Included, false, false);
|
||||
|
||||
_repo.MarkBranchesDirtyManually();
|
||||
_repo.SetWatcherEnabled(true);
|
||||
|
||||
@@ -107,7 +107,7 @@ namespace SourceGit.ViewModels
|
||||
log.Complete();
|
||||
|
||||
if (_repo.HistoriesFilterMode == Models.FilterMode.Included)
|
||||
_repo.SetBranchFilterMode(LocalBranch, Models.FilterMode.Included, true, false);
|
||||
_repo.SetBranchFilterMode(LocalBranch, Models.FilterMode.Included, false, false);
|
||||
|
||||
_repo.MarkBranchesDirtyManually();
|
||||
_repo.SetWatcherEnabled(true);
|
||||
|
||||
@@ -221,8 +221,7 @@ namespace SourceGit.ViewModels
|
||||
_repo.Settings.ExpandedBranchNodesInSideBar.Add(fake.FullName.Substring(0, folderEndIdx));
|
||||
|
||||
if (_repo.HistoriesFilterMode == Models.FilterMode.Included)
|
||||
_repo.SetBranchFilterMode(fake, Models.FilterMode.Included, true, false);
|
||||
|
||||
_repo.SetBranchFilterMode(fake, Models.FilterMode.Included, false, false);
|
||||
}
|
||||
|
||||
_repo.MarkBranchesDirtyManually();
|
||||
|
||||
Reference in New Issue
Block a user