libgit2

git_packbuilder_insert_tree

Version:

Insert a root tree object

This will add the tree as well as all referenced trees and blobs.

Signature

int git_packbuilder_insert_tree(git_packbuilder *pb, const git_oid *id);

Parameters

In
pb

The packbuilder

In
id

The oid of the root tree

Returns

int

0 or an error code

Versions