private void Watcher_OnLocalBranchChanged(string name)
 {
     if (name == ActiveBranch?.Name)
     {
         OnActiveBranchChanged?.Invoke();
         UpdateGitStatus();
     }
 }
예제 #2
0
 private void Watcher_OnHeadChanged(string contents)
 {
     Logger.Trace("Watcher_OnHeadChanged");
     head = contents;
     OnActiveBranchChanged?.Invoke(GetActiveBranch());
     OnActiveRemoteChanged?.Invoke(GetActiveRemote());
     UpdateGitStatus();
 }
예제 #3
0
 private void OnLocalBranchChanged(string name)
 {
     if (name == this.Repository.CurrentBranch)
     {
         OnActiveBranchChanged?.Invoke();
         OnRepositoryUpdatedHandler();
     }
 }
예제 #4
0
 public void Reset()
 {
     OnIsBusy.Reset();
     OnIsNotBusy.Reset();
     OnStatusUpdate.Reset();
     OnActiveBranchChanged.Reset();
     OnActiveRemoteChanged.Reset();
     OnLocalBranchListChanged.Reset();
     OnRemoteBranchListChanged.Reset();
     OnLocksUpdated.Reset();
 }
예제 #5
0
 public void Reset()
 {
     OnIsBusy.Reset();
     OnIsNotBusy.Reset();
     OnRepositoryChanged.Reset();
     OnActiveBranchChanged.Reset();
     OnActiveRemoteChanged.Reset();
     OnHeadChanged.Reset();
     OnLocalBranchListChanged.Reset();
     OnRemoteBranchListChanged.Reset();
     OnRemoteOrTrackingChanged.Reset();
     OnLocksUpdated.Reset();
 }
예제 #6
0
        private void RefreshConfigData(bool resetConfig = false)
        {
            if (resetConfig)
            {
                config.Reset();
            }

            Logger.Trace("RefreshConfigData");

            LoadBranchesFromConfig();
            LoadRemotesFromConfig();

            OnActiveBranchChanged?.Invoke(GetActiveBranch());
            OnActiveRemoteChanged?.Invoke(GetActiveRemote());
        }
예제 #7
0
 private void RepositoryManager_OnActiveBranchChanged()
 {
     OnActiveBranchChanged?.Invoke(CurrentBranch);
 }
예제 #8
0
 private void RepositoryManager_OnActiveBranchChanged(string branch)
 {
     CurrentBranch = branch;
     OnActiveBranchChanged?.Invoke(CurrentBranch);
 }