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, }); }
public void AssignContribution(Contribution contribution) { Contributions.Add(contribution); contribution.Contributor = this; }
public void AddContribution(Contribution contribution) { Contributions.Add(contribution); }