pack(path=None, pack_delegate=None, n_threads=None)
Pack the objects in the odb chosen by the pack_delegate function and write .pack and .idx files for them.
Returns: the number of objects written to the pack
The path to which the .pack and .idx files should be written. None will write to the default location.
The method which will provide add the objects to the pack builder. Defaults to all objects.
The number of threads the PackBuilder will spawn. If set to 0 libgit2 will autodetect the number of CPUs.