Convert a tree entry to the git_object it points too.
pointer to the converted object
a tree entry
a reference to the pointed object in the repository