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