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()
A tree entry to duplicate
a copy of the original entry or NULL on error (alloc failure)