Write the contents of the tree builder as a tree object
using a shared git_buf.
@see git_treebuilder_write
@param oid Pointer to store the OID of the newly written tree
@param bld Tree builder to write
@param tree Shared buffer for writing the tree. Will be grown as necessary.
@return 0 or an error code
Write the contents of the tree builder as a tree object using a shared git_buf.
@see git_treebuilder_write
@param oid Pointer to store the OID of the newly written tree @param bld Tree builder to write @param tree Shared buffer for writing the tree. Will be grown as necessary. @return 0 or an error code