Create a new in-memory git_tree.
The tree object must be manually filled using setter methods before it can be written to its repository.
pointer to the new tree
The repository where the object will reside
0 on success; error code otherwise