git_object_id_from...
Using the `git_object_id_from` is an overall code simplification; switch to it.