libgit2/rugged — pull request #150 by tnm (2012-12-30 05:23:49+00:00)
Title: Wrap and introduce get_entry_by_oid

This adds coverage for `get_entry_by_oid`, which returns a hash entry from a tree, based off the oid sha (instead of index or filename, like plain `get_entry`. I set this as its own method for clarity and especially because this method has different performance characteristics from `get_entry`; in theory we could fold it into `get_entry` if we wanted, but I do like this approach for now.

Added three unit tests, confirming correct behavior when given a non-existent `oid` or when given a non-string argument.

cc @vmg