git_packbuilder_insert

Insert a single object

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

extern (C) nothrow @nogc
int
git_packbuilder_insert

Parameters

pb libgit2_d.types.git_packbuilder*

The packbuilder

id const(libgit2_d.oid.git_oid)*

The oid of the commit

name const(char)*

The name; might be null

Return Value

Type: int

0 or an error code

Meta