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 its identifying SHA1 hash will be stored in the id pointer.

Signature

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

Parameters

In
id

Pointer to store the OID of the newly written tree

In
repo

Repository in which to store the object

In
bld

Tree builder to write

Returns

int

0 or an error code

Versions