libgit2

git_packbuilder_insert

Version:

Insert a single object

For an optimal pack it's mandatory to insert objects in recency order, commits followed by trees and blobs.

Signature

int git_packbuilder_insert(git_packbuilder *pb, const git_oid *id, const char *name);

Parameters

In
pb

The packbuilder

In
id

The oid of the commit

const char *
In
name

The name; might be NULL

Returns

int

0 or an error code

Versions