예제 #1
0
        public void AddHistory(Commit commit, CommitChange change, Contribution contribution)
        {
            if (change.Status != FileHistoryType.Renamed &&
                change.Status != FileHistoryType.Added &&
                change.Status != FileHistoryType.Deleted)
            {
                return;
            }

            FileHistories.Add(new FileHistory()
            {
                File            = this,
                Contribution    = contribution,
                FileHistoryType = change.Status,
                SubscriptionId  = contribution.SubscriptionId,
                OldPath         = change.Status == FileHistoryType.Renamed ? change.OldPath : null,
                Path            = change.Path,
            });
        }
예제 #2
0
 public void AssignContribution(Contribution contribution)
 {
     Contributions.Add(contribution);
     contribution.Contributor = this;
 }
예제 #3
0
 public void AddContribution(Contribution contribution)
 {
     Contributions.Add(contribution);
 }