Write the index as a tree to the given repository
This method will do the same as git_index_write_tree, but letting the user choose the repository where the tree will be written.
The index must not contain any file in conflict.
Pointer where to store OID of the the written tree
Index to write
Repository where to write the tree
0 on success, git_error_code.GIT_EUNMERGED when the index is not clean or an error code
See Implementation
Write the index as a tree to the given repository
This method will do the same as git_index_write_tree, but letting the user choose the repository where the tree will be written.
The index must not contain any file in conflict.