procedure
( git_packbuilder_foreachpbcbpayload)→integer?
pb:packbuilder?cb:git_packbuilder_foreach_cbpayload:bytes?
procedure
( git_packbuilder_freepb)→void?
pb:packbuilder?
A packfile’s name is derived from the sorted hashing of all object names. This is only correct after the packfile has been written.
For an optimal pack it’s mandatory to insert objects in recency order, commits followed by trees and blobs.
procedure
( git_packbuilder_insert_commitpbid)→integer?
pb:packbuilder?id:oid?
This will add a commit as well as the completed referenced tree.
Insert the object as well as any object it references.
procedure
( git_packbuilder_insert_treepbid)→integer?
pb:packbuilder?id:oid?
This will add the tree as well as all referenced trees and blobs.
procedure
( git_packbuilder_insert_walkpbwalk)→integer?
pb:packbuilder?walk:revwalk?
Those commits and all objects they reference will be inserted into the packbuilder.
procedure
( git_packbuilder_object_countpb)→integer?
pb:packbuilder?
procedure
progress_cbpb:packbuilder?progress_cb:git_packbuilder_progressprogress_cb_payload:bytes?
By default, libgit2 won’t spawn any threads at all; when set to 0, libgit2 will autodetect the number of CPUs.
procedure
pathmodeprogress_cbpb:packbuilder?path:string?mode:integer?progress_cb:git_transfer_progress_cbprogress_cb_payload:bytes?
procedure
( git_packbuilder_writtenpb)→integer?
pb:packbuilder?