private void Watcher_OnLocalBranchChanged(string name) { if (name == ActiveBranch?.Name) { OnActiveBranchChanged?.Invoke(); UpdateGitStatus(); } }
private void Watcher_OnHeadChanged(string contents) { Logger.Trace("Watcher_OnHeadChanged"); head = contents; OnActiveBranchChanged?.Invoke(GetActiveBranch()); OnActiveRemoteChanged?.Invoke(GetActiveRemote()); UpdateGitStatus(); }
private void OnLocalBranchChanged(string name) { if (name == this.Repository.CurrentBranch) { OnActiveBranchChanged?.Invoke(); OnRepositoryUpdatedHandler(); } }
public void Reset() { OnIsBusy.Reset(); OnIsNotBusy.Reset(); OnStatusUpdate.Reset(); OnActiveBranchChanged.Reset(); OnActiveRemoteChanged.Reset(); OnLocalBranchListChanged.Reset(); OnRemoteBranchListChanged.Reset(); OnLocksUpdated.Reset(); }
public void Reset() { OnIsBusy.Reset(); OnIsNotBusy.Reset(); OnRepositoryChanged.Reset(); OnActiveBranchChanged.Reset(); OnActiveRemoteChanged.Reset(); OnHeadChanged.Reset(); OnLocalBranchListChanged.Reset(); OnRemoteBranchListChanged.Reset(); OnRemoteOrTrackingChanged.Reset(); OnLocksUpdated.Reset(); }
private void RefreshConfigData(bool resetConfig = false) { if (resetConfig) { config.Reset(); } Logger.Trace("RefreshConfigData"); LoadBranchesFromConfig(); LoadRemotesFromConfig(); OnActiveBranchChanged?.Invoke(GetActiveBranch()); OnActiveRemoteChanged?.Invoke(GetActiveRemote()); }
private void RepositoryManager_OnActiveBranchChanged() { OnActiveBranchChanged?.Invoke(CurrentBranch); }
private void RepositoryManager_OnActiveBranchChanged(string branch) { CurrentBranch = branch; OnActiveBranchChanged?.Invoke(CurrentBranch); }