libgit2/libgit2 — pull request #674 by nulltoken (2012-05-07 13:53:39+00:00)
Title: WIP - Improve the interop with bindings

Usually, Ruby returns nil when a lookup fails. Similarly LibGit2Sharp returns null when an lookup doesn't return anything matching the provided filters.

This PR should ease this further by making the error code GIT_ENOTFOUND returned in the following use cases:

- `git_remote_load()` a non existing remote
- `git_object_lookup()` an existing object by specifying a wrong type

**Not implemented yet**

- `git_repository_discover()` can't find any valid repository