Write a new tree object to repository
containing a representation of the current state of the index.
The index must not contain any files in conflict. You can use the resulting tree to for instance create a commit.
this |
a Index. |
repository |
a Repository. |
a OId or null in case of an error. |