libgit2/libgit2sharp — pull request #144 by nulltoken (2012-05-02 20:13:23+00:00)
Title: Blob to blob diffing

Ready for review.

Beside the existing

```
TreeChanges changes = repo.Diff.Compare(Tree oldTree, Tree newTree);
````

We now have

```
ContentChanges changes = repo.Diff.Compare(Blob oldBlob, Blob newBlob);
```

According to [diff.h](https://github.com/libgit2/libgit2/blob/new-error-handling/include/git2/diff.h#L222-288), four diff features remain to be implemented: `index_to_tree`, `workdir_to_index`, `workdir_to_tree`, `diff_merge(workdir to index, index to tree)`. All of these features should return `TreeChanges` instances.

I doubt we'll be able to stick on the `Compare`overloads meme... Any alternative ideas?