git_odb_write_multi_pack_index

Write a multi-pack-index file from all the .pack files in the ODB.

If the ODB layer understands pack files, then this will create a file called multi-pack-index next to the .pack and .idx files, which will contain an index of all objects stored in .pack files. This will allow for O(log n) lookup for n objects (regardless of how many packfiles there exist).

extern (C) nothrow @nogc public
int
git_odb_write_multi_pack_index

Parameters

db libgit2.types.git_odb*

object database where the multi-pack-index file will be written.

Return Value

Type: int

0 or an error code.

Meta