GitScc.GitRepository.GetChanges C# (CSharp) Method

GetChanges() public method

public GetChanges ( string commitId1, string commitId2 ) : List
commitId1 string
commitId2 string
return List
        public List<Change> GetChanges(string commitId1, string commitId2)
        {
            List<Change> changes = new List<Change>();
            using (var repository = GetRepository())
            {
                var commitOld = repository.Lookup<LibGit2Sharp.Commit>(commitId1);
                var commitNew = repository.Lookup<LibGit2Sharp.Commit>(commitId2);
                return repository.Diff.Compare<Patch>(commitOld.Tree, commitNew.Tree).Select(BuildChange).ToList();
            }
        }