libgit2/libgit2sharp — pull request #163 by tclem (2012-06-01 18:26:27+00:00)
Title: Csharp friendly errors

This also introduces a new marshaler for GitError along with a distinction between exceptions (errors) in libgit2 vs. exceptions in libgit2sharp. It also makes the error names a bit more C# friendly:

`GitErrorCode.NotFound` vs. `GitErrorCode.GIT_ENOTFOUND`

I added a new exception type (see [LibGit2SharpException](https://github.com/tclem/libgit2sharp/blob/csharp-friendly-errors/LibGit2Sharp/LibGit2Exception.cs#L30) and [LibGit2Exception](https://github.com/tclem/libgit2sharp/blob/csharp-friendly-errors/LibGit2Sharp/LibGit2Exception.cs#L9)) so that you know whether an error is actually coming from libgit2 or if it is something LibGit2Sharp is checking. This should also make it easier to move towards LibGit2Sharp doing less work and deferring as much as we can to libgit2. I have tried to introduce this change in a way that does not break the public API.