Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 1b27c29

Browse files
Making property setters private
1 parent 1dc8762 commit 1b27c29

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/GitHub.Api/Git/Repository.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -525,19 +525,19 @@ private static GitRemote GetGitRemote(ConfigRemote configRemote)
525525
public GitRemote[] Remotes
526526
{
527527
get { return cacheContainer.BranchCache.Remotes; }
528-
set { cacheContainer.BranchCache.Remotes = value; }
528+
private set { cacheContainer.BranchCache.Remotes = value; }
529529
}
530530

531531
public GitBranch[] LocalBranches
532532
{
533533
get { return cacheContainer.BranchCache.LocalBranches; }
534-
set { cacheContainer.BranchCache.LocalBranches = value; }
534+
private set { cacheContainer.BranchCache.LocalBranches = value; }
535535
}
536536

537537
public GitBranch[] RemoteBranches
538538
{
539539
get { return cacheContainer.BranchCache.RemoteBranches; }
540-
set { cacheContainer.BranchCache.RemoteBranches = value; }
540+
private set { cacheContainer.BranchCache.RemoteBranches = value; }
541541
}
542542

543543
private ConfigBranch? CurrentConfigBranch
@@ -555,27 +555,27 @@ private ConfigRemote? CurrentConfigRemote
555555
public GitStatus CurrentStatus
556556
{
557557
get { return cacheContainer.GitStatusCache.GitStatus; }
558-
set { cacheContainer.GitStatusCache.GitStatus = value; }
558+
private set { cacheContainer.GitStatusCache.GitStatus = value; }
559559
}
560560

561561
public GitBranch? CurrentBranch
562562
{
563563
get { return cacheContainer.RepositoryInfoCache.CurentGitBranch; }
564-
set { cacheContainer.RepositoryInfoCache.CurentGitBranch = value; }
564+
private set { cacheContainer.RepositoryInfoCache.CurentGitBranch = value; }
565565
}
566566

567567
public string CurrentBranchName => CurrentConfigBranch?.Name;
568568

569569
public GitRemote? CurrentRemote
570570
{
571571
get { return cacheContainer.RepositoryInfoCache.CurrentGitRemote; }
572-
set { cacheContainer.RepositoryInfoCache.CurrentGitRemote = value; }
572+
private set { cacheContainer.RepositoryInfoCache.CurrentGitRemote = value; }
573573
}
574574

575575
public List<GitLogEntry> CurrentLog
576576
{
577577
get { return cacheContainer.GitLogCache.Log; }
578-
set { cacheContainer.GitLogCache.Log = value; }
578+
private set { cacheContainer.GitLogCache.Log = value; }
579579
}
580580

581581
public event Action<CacheUpdateEvent> LogChanged;
@@ -591,7 +591,7 @@ public List<GitLogEntry> CurrentLog
591591
public List<GitLock> CurrentLocks
592592
{
593593
get { return cacheContainer.GitLocksCache.GitLocks; }
594-
set { cacheContainer.GitLocksCache.GitLocks = value; }
594+
private set { cacheContainer.GitLocksCache.GitLocks = value; }
595595
}
596596

597597
public UriString CloneUrl

0 commit comments

Comments
 (0)