Note this is a performance improvement replacement for {@link WriteTree} but so far isonly used by {@link CommitOp}, as it doesn't have a proper replacement for {@link WriteTree#setDiffSupplier(Supplier)} yet, as used by the remote, REST, and WEB APIs.
This command creates a tree object using the current index. The id of the new root tree object is returned. No {@link Ref ref} is updated as a result of this operation, so the resulting root treeis "orphan". It's up to the calling code to update any needed reference. The index must be in a fully merged state. Conceptually, write-tree sync()s the current index contents into a set of tree objects on the {@link ObjectDatabase}. In order to have that match what is actually in your directory right now, you need to have done a {@link UpdateIndex} phase before you did the write-tree. @see TreeDifference @see MutableTree @see DeepMove
|
|