git_treebuilder_write_with_buffer

Write the contents of the tree builder as a tree object using a shared git_buf.

@see git_treebuilder_write

extern (C) nothrow @nogc
int
git_treebuilder_write_with_buffer

Parameters

oid libgit2_d.oid.git_oid*

Pointer to store the OID of the newly written tree

bld libgit2_d.types.git_treebuilder*

Tree builder to write

tree libgit2_d.buffer.git_buf*

Shared buffer for writing the tree. Will be grown as necessary.

Return Value

Type: int

0 or an error code

Meta