Duplicate a tree entry
Create a copy of a tree entry. The returned copy is owned by the user, and must be freed explicitly with git_tree_entry_free().
git_tree_entry_free()
pointer where to store the copy
tree entry to duplicate
0 or an error code