public IEnumerable <GitCommit> IntersectWith(ListOfCommits commits) { var result = new HashSet <string>(_hashset); result.IntersectWith(commits._hashset); return(Commits.Where(commit => commits.Contains(commit.Sha))); }
public GitRepository( IReadOnlyCollection <GitBranch> branches, IReadOnlyCollection <GitCommit> commits, IReadOnlyCollection <GitTag> tags) { Branches = branches; Master = OriginMasterOrMasterCommits(branches); Develop = OriginDevelopOrDevelopCommits(branches); CurrentBranch = new ListOfCommits(commits); Tags = tags; }
public GitRepository( IReadOnlyCollection <GitBranch> branches, IReadOnlyCollection <GitCommit> commits, IReadOnlyCollection <GitTag> tags, bool isRepoDirty) { _commits = commits; Branches = branches; Master = OriginMasterOrMasterCommits(branches); Develop = OriginDevelopOrDevelopCommits(branches); CurrentBranch = new ListOfCommits(commits); Tags = tags; IsDirty = isRepoDirty; }
public IEnumerable <string> Except(ListOfCommits commits) => _hashset.Except(commits._hashset);
public bool SetEquals(ListOfCommits commits) => _hashset.SetEquals(commits._hashset);
public bool Overlaps(ListOfCommits commits) => _hashset.Overlaps(commits._hashset);