libgit2

git_treebuilder_write

Version:

Write the contents of the tree builder as a tree object

The tree builder will be written to the given repo, and it's identifying SHA1 hash will be stored in the oid pointer.

Signature

int git_treebuilder_write(git_oid *oid, git_repository *repo, git_treebuilder *bld);

Parameters

In
oid

Pointer where to store the written OID

In
repo

Repository where to store the object

In
bld

Tree builder to write

Returns

int

0 on success; error code otherwise

Versions