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