Thanks to visit codestin.com Credit goes to libgit2.org
Set number of threads to spawn
By default, libgit2 won't spawn any threads at all; when set to 0, libgit2 will autodetect the number of CPUs.
The packbuilder
Number of threads to spawn
number of actual threads to be used