libgit2

git_odb_backend_one_pack

Version:

Create a backend out of a single packfile

This can be useful for inspecting the contents of a single packfile.

Signature

int git_odb_backend_one_pack(git_odb_backend **out, const char *index_file);

Parameters

In
out

location to store the odb backend pointer

const char *
In
index_file

path to the packfile's .idx file

Returns

int

0 or an error code

Versions