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

Commit b3639d8

Browse files
Renaming methods
1 parent b6959c7 commit b3639d8

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/GitHub.Api/Git/Repository.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ public void Initialize(IRepositoryManager repositoryManager)
4949

5050
this.repositoryManager = repositoryManager;
5151

52-
repositoryManager.OnCurrentBranchUpdated += OnRepositoryManager_OnCurrentBranchUpdated;
53-
repositoryManager.OnCurrentRemoteUpdated += OnRepositoryManager_OnCurrentRemoteUpdated;
52+
repositoryManager.OnCurrentBranchUpdated += RepositoryManager_OnCurrentBranchUpdated;
53+
repositoryManager.OnCurrentRemoteUpdated += RepositoryManager_OnCurrentRemoteUpdated;
5454
repositoryManager.OnStatusUpdated += status => CurrentStatus = status;
5555
repositoryManager.OnLocksUpdated += locks => CurrentLocks = locks;
56-
repositoryManager.OnLocalBranchListUpdated += OnRepositoryManager_OnLocalBranchListUpdated;
57-
repositoryManager.OnRemoteBranchListUpdated += OnRepositoryManager_OnRemoteBranchListUpdated;
58-
repositoryManager.OnLocalBranchUpdated += OnRepositoryManager_OnLocalBranchUpdated;
56+
repositoryManager.OnLocalBranchListUpdated += RepositoryManager_OnLocalBranchListUpdated;
57+
repositoryManager.OnRemoteBranchListUpdated += RepositoryManager_OnRemoteBranchListUpdated;
58+
repositoryManager.OnLocalBranchUpdated += RepositoryManager_OnLocalBranchUpdated;
5959
repositoryManager.OnLocalBranchAdded += RepositoryManager_OnLocalBranchAdded;
6060
repositoryManager.OnLocalBranchRemoved += RepositoryManager_OnLocalBranchRemoved;
6161
repositoryManager.OnRemoteBranchAdded += RepositoryManager_OnRemoteBranchAdded;
@@ -168,7 +168,7 @@ public bool Equals(IRepository other)
168168
object.Equals(LocalPath, other.LocalPath);
169169
}
170170

171-
private void OnRepositoryManager_OnCurrentRemoteUpdated(ConfigRemote? remote)
171+
private void RepositoryManager_OnCurrentRemoteUpdated(ConfigRemote? remote)
172172
{
173173
if (!Nullable.Equals(currentRemote, remote))
174174
{
@@ -179,7 +179,7 @@ private void OnRepositoryManager_OnCurrentRemoteUpdated(ConfigRemote? remote)
179179
}
180180
}
181181

182-
private void OnRepositoryManager_OnCurrentBranchUpdated(ConfigBranch? branch)
182+
private void RepositoryManager_OnCurrentBranchUpdated(ConfigBranch? branch)
183183
{
184184
if (!Nullable.Equals(currentBranch, branch))
185185
{
@@ -189,7 +189,7 @@ private void OnRepositoryManager_OnCurrentBranchUpdated(ConfigBranch? branch)
189189
}
190190
}
191191

192-
private void OnRepositoryManager_OnLocalBranchUpdated(string name)
192+
private void RepositoryManager_OnLocalBranchUpdated(string name)
193193
{
194194
if (name == currentBranch?.Name)
195195
{
@@ -198,7 +198,7 @@ private void OnRepositoryManager_OnLocalBranchUpdated(string name)
198198
}
199199
}
200200

201-
private void OnRepositoryManager_OnRemoteBranchListUpdated(Dictionary<string, ConfigRemote> updatedRemotes, Dictionary<string, Dictionary<string, ConfigBranch>> branches)
201+
private void RepositoryManager_OnRemoteBranchListUpdated(Dictionary<string, ConfigRemote> updatedRemotes, Dictionary<string, Dictionary<string, ConfigBranch>> branches)
202202
{
203203
remotes = updatedRemotes;
204204

@@ -210,7 +210,7 @@ private void OnRepositoryManager_OnRemoteBranchListUpdated(Dictionary<string, Co
210210
OnRemoteBranchListChanged?.Invoke();
211211
}
212212

213-
private void OnRepositoryManager_OnLocalBranchListUpdated(Dictionary<string, ConfigBranch> branches)
213+
private void RepositoryManager_OnLocalBranchListUpdated(Dictionary<string, ConfigBranch> branches)
214214
{
215215
localBranches = branches;
216216

0 commit comments

Comments
 (0)