libgit2/libgit2sharp — pull request #250 by yorah (2012-11-21 15:50:52+00:00)
Title: Make `GitObject.DereferenceToCommit()` use `git_object_peel()`

As I also needed access to a repo handle in order to call `GitObject.BuildFrom()`, I moved the `GitObject.DereferenceToCommit()` method in `GitObject` (it was previously defined as an extension method).

This PR will also benefit from the work @nulltoken is doing on libgit2/libgit2#1063 , where he is making the error codes/messages returned by `git_object_peel()` more verbose (and in-line with what we previously had in libgit2sharp).