@@ -389,11 +389,9 @@ private void RepositoryManager_OnRemoteBranchListUpdated(IDictionary<string, Con
389
389
390
390
private void UpdateRemoteAndRemoteBranches ( )
391
391
{
392
- cacheContainer . BranchCache . Remotes =
393
- cacheContainer . BranchCache . ConfigRemotes . Values . Select ( GetGitRemote ) . ToArray ( ) ;
392
+ Remotes = ConfigRemotes . Values . Select ( GetGitRemote ) . ToArray ( ) ;
394
393
395
- cacheContainer . BranchCache . RemoteBranches = cacheContainer
396
- . BranchCache . RemoteConfigBranches . Values . SelectMany ( x => x . Values ) . Select ( GetRemoteGitBranch ) . ToArray ( ) ;
394
+ RemoteBranches = RemoteConfigBranches . Values . SelectMany ( x => x . Values ) . Select ( GetRemoteGitBranch ) . ToArray ( ) ;
397
395
}
398
396
399
397
private void RepositoryManager_OnLocalBranchListUpdated ( IDictionary < string , ConfigBranch > branches )
@@ -406,8 +404,7 @@ private void RepositoryManager_OnLocalBranchListUpdated(IDictionary<string, Conf
406
404
407
405
private void UpdateLocalBranches ( )
408
406
{
409
- cacheContainer . BranchCache . LocalBranches = cacheContainer
410
- . BranchCache . LocalConfigBranches . Values . Select ( GetLocalGitBranch ) . ToArray ( ) ;
407
+ LocalBranches = LocalConfigBranches . Values . Select ( GetLocalGitBranch ) . ToArray ( ) ;
411
408
}
412
409
413
410
private void UpdateRepositoryInfo ( )
@@ -479,16 +476,34 @@ private static GitRemote GetGitRemote(ConfigRemote configRemote)
479
476
return new GitRemote { Name = configRemote . Name , Url = configRemote . Url } ;
480
477
}
481
478
482
- public GitRemote [ ] Remotes => cacheContainer . BranchCache . Remotes ;
479
+ private IRemoteConfigBranchDictionary RemoteConfigBranches => cacheContainer . BranchCache . RemoteConfigBranches ;
483
480
484
- public GitBranch [ ] LocalBranches => cacheContainer . BranchCache . LocalBranches ;
481
+ private IConfigRemoteDictionary ConfigRemotes => cacheContainer . BranchCache . ConfigRemotes ;
485
482
486
- public GitBranch [ ] RemoteBranches => cacheContainer . BranchCache . RemoteBranches ;
483
+ private ILocalConfigBranchDictionary LocalConfigBranches => cacheContainer . BranchCache . LocalConfigBranches ;
484
+
485
+ public GitRemote [ ] Remotes
486
+ {
487
+ get { return cacheContainer . BranchCache . Remotes ; }
488
+ set { cacheContainer . BranchCache . Remotes = value ; }
489
+ }
490
+
491
+ public GitBranch [ ] LocalBranches
492
+ {
493
+ get { return cacheContainer . BranchCache . LocalBranches ; }
494
+ set { cacheContainer . BranchCache . LocalBranches = value ; }
495
+ }
496
+
497
+ public GitBranch [ ] RemoteBranches
498
+ {
499
+ get { return cacheContainer . BranchCache . RemoteBranches ; }
500
+ set { cacheContainer . BranchCache . RemoteBranches = value ; }
501
+ }
487
502
488
503
private ConfigBranch ? CurrentConfigBranch
489
504
{
490
505
get { return this . cacheContainer . BranchCache . CurentConfigBranch ; }
491
- set { cacheContainer . BranchCache . CurentConfigBranch = value ; }
506
+ set { cacheContainer . BranchCache . CurentConfigBranch = value ; }
492
507
}
493
508
494
509
private ConfigRemote ? CurrentConfigRemote
0 commit comments