@@ -7,12 +7,12 @@ namespace GitHub.Unity
7
7
{
8
8
public interface IRepositoryManager : IDisposable
9
9
{
10
- event Action < ConfigBranch ? , ConfigRemote ? > OnCurrentBranchAndRemoteUpdated ;
11
- event Action < bool > OnIsBusyChanged ;
10
+ event Action < bool > IsBusyChanged ;
11
+ event Action < ConfigBranch ? , ConfigRemote ? > CurrentBranchUpdated ;
12
12
event Action < GitStatus > GitStatusUpdated ;
13
13
event Action < List < GitLogEntry > > GitLogUpdated ;
14
- event Action < Dictionary < string , ConfigBranch > > OnLocalBranchListUpdated ;
15
- event Action < Dictionary < string , ConfigRemote > , Dictionary < string , Dictionary < string , ConfigBranch > > > OnRemoteBranchListUpdated ;
14
+ event Action < Dictionary < string , ConfigBranch > > LocalBranchesUpdated ;
15
+ event Action < Dictionary < string , ConfigRemote > , Dictionary < string , Dictionary < string , ConfigBranch > > > RemoteBranchesUpdated ;
16
16
17
17
void Initialize ( ) ;
18
18
void Start ( ) ;
@@ -96,12 +96,12 @@ class RepositoryManager : IRepositoryManager
96
96
97
97
private bool isBusy ;
98
98
99
- public event Action < ConfigBranch ? , ConfigRemote ? > OnCurrentBranchAndRemoteUpdated ;
100
- public event Action < bool > OnIsBusyChanged ;
99
+ public event Action < ConfigBranch ? , ConfigRemote ? > CurrentBranchUpdated ;
100
+ public event Action < bool > IsBusyChanged ;
101
101
public event Action < GitStatus > GitStatusUpdated ;
102
102
public event Action < List < GitLogEntry > > GitLogUpdated ;
103
- public event Action < Dictionary < string , ConfigBranch > > OnLocalBranchListUpdated ;
104
- public event Action < Dictionary < string , ConfigRemote > , Dictionary < string , Dictionary < string , ConfigBranch > > > OnRemoteBranchListUpdated ;
103
+ public event Action < Dictionary < string , ConfigBranch > > LocalBranchesUpdated ;
104
+ public event Action < Dictionary < string , ConfigRemote > , Dictionary < string , Dictionary < string , ConfigBranch > > > RemoteBranchesUpdated ;
105
105
106
106
public RepositoryManager ( IPlatform platform , IGitConfig gitConfig ,
107
107
IRepositoryWatcher repositoryWatcher , IGitClient gitClient ,
@@ -342,7 +342,7 @@ private void UpdateCurrentBranchAndRemote(string head)
342
342
343
343
Logger . Trace ( "CurrentBranch: {0}" , branch . HasValue ? branch . Value . ToString ( ) : "[NULL]" ) ;
344
344
Logger . Trace ( "CurrentRemote: {0}" , remote . HasValue ? remote . Value . ToString ( ) : "[NULL]" ) ;
345
- OnCurrentBranchAndRemoteUpdated ? . Invoke ( branch , remote ) ;
345
+ CurrentBranchUpdated ? . Invoke ( branch , remote ) ;
346
346
}
347
347
348
348
private ITask HookupHandlers ( ITask task , bool disableWatcher = false )
@@ -456,7 +456,7 @@ private void UpdateLocalBranches()
456
456
UpdateLocalBranches ( branches , repositoryPaths . BranchesPath , config . GetBranches ( ) . Where ( x => x . IsTracking ) , "" ) ;
457
457
458
458
Logger . Trace ( "OnLocalBranchListUpdated {0} branches" , branches . Count ) ;
459
- OnLocalBranchListUpdated ? . Invoke ( branches ) ;
459
+ LocalBranchesUpdated ? . Invoke ( branches ) ;
460
460
}
461
461
462
462
private void UpdateLocalBranches ( Dictionary < string , ConfigBranch > branches , NPath path , IEnumerable < ConfigBranch > configBranches , string prefix )
@@ -505,7 +505,7 @@ private void UpdateRemoteBranches()
505
505
}
506
506
507
507
Logger . Trace ( "OnRemoteBranchListUpdated {0} remotes" , remotes . Count ) ;
508
- OnRemoteBranchListUpdated ? . Invoke ( remotes , remoteBranches ) ;
508
+ RemoteBranchesUpdated ? . Invoke ( remotes , remoteBranches ) ;
509
509
}
510
510
511
511
private bool disposed ;
@@ -541,7 +541,7 @@ private set
541
541
{
542
542
Logger . Trace ( "IsBusyChanged Value:{0}" , value ) ;
543
543
isBusy = value ;
544
- OnIsBusyChanged ? . Invoke ( isBusy ) ;
544
+ IsBusyChanged ? . Invoke ( isBusy ) ;
545
545
}
546
546
}
547
547
}
0 commit comments