Convert a tree entry to the git_object it points to.
You must call git_object_free() on the object when you are done with it.
git_object_free()
pointer to the converted object
repository where to lookup the pointed object
a tree entry
0 or an error code