libgit2

git_treebuilder_write_with_buffer

Version:

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

See

Signature

int git_treebuilder_write_with_buffer(git_oid *oid, git_treebuilder *bld, git_buf *tree);

Parameters

In
oid

Pointer to store the OID of the newly written tree

In
bld

Tree builder to write

In
tree

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

Returns

int

0 or an error code

Versions