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();
}
}