Create a tree based on another one with the specified modifications
Given the baseline
perform the changes described in the list of
updates
and create a new tree.
This function is optimized for common file/directory addition, removal and
replacement in trees. It is much more efficient than reading the tree into a
git_index
and modifying that, but in exchange it is not as flexible.
Deleting and adding the same entry is undefined behaviour, changing a tree to a blob or viceversa is not supported.
the repository in which to create the tree, must be the same as for baseline
the number of elements in the update list