예제 #1
0
 private void RepositoryManagerOnGitAheadBehindStatusUpdated(GitAheadBehindStatus aheadBehindStatus)
 {
     taskManager.RunInUI(() =>
     {
         cacheContainer.GitTrackingStatusCache.Ahead  = aheadBehindStatus.Ahead;
         cacheContainer.GitTrackingStatusCache.Behind = aheadBehindStatus.Behind;
     });
 }
예제 #2
0
파일: Repository.cs 프로젝트: lin5/Unity
 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);
 }