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 FindOrCreateSubtree @see DeepMove @see ResolveTreeish @see CreateTree @see RevObjectParse
|
|