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