Change git_revparse to output git_object pointers This will probably prevent many lookup/free operations in calling code.