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.
@param out_ id of the new tree
@param repo the repository in which to create the tree, must be the
same as for baseline
@param baseline the tree to base these changes on
@param nupdates the number of elements in the update list
@param updates the list of updates to perform
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.
@param out_ id of the new tree @param repo the repository in which to create the tree, must be the same as for baseline @param baseline the tree to base these changes on @param nupdates the number of elements in the update list @param updates the list of updates to perform