Пример #1
0
 private void RepositoryManagerOnGitAheadBehindStatusUpdated(GitAheadBehindStatus aheadBehindStatus)
 {
     taskManager.RunInUI(() =>
     {
         cacheContainer.GitTrackingStatusCache.Ahead  = aheadBehindStatus.Ahead;
         cacheContainer.GitTrackingStatusCache.Behind = aheadBehindStatus.Behind;
     });
 }
Пример #2
0
 private void RepositoryManagerOnGitAheadBehindStatusUpdated(GitAheadBehindStatus aheadBehindStatus)
 {
     new ActionTask(CancellationToken.None, () => {
         CurrentAhead  = aheadBehindStatus.Ahead;
         CurrentBehind = aheadBehindStatus.Behind;
     })
     {
         Affinity = TaskAffinity.UI
     }.Start();
 }
Пример #3
0
 public bool Equals(GitAheadBehindStatus other)
 {
     return(ahead == other.ahead && behind == other.behind);
 }