libgit2

git_odb_write_multi_pack_index

Version:

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).

Signature

int git_odb_write_multi_pack_index(git_odb *db);

Parameters

In
db

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

Returns

int

0 or an error code.

Versions