libgit2

git_odb_backend_one_pack

Version:

Create a backend for a single packfile.

Signature

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

Parameters

Out
out

location to store the odb backend pointer

const char *
In
index_file

path to the packfile's .idx file

In
opts

the options to use when creating the pack backend

Returns

int

0 or an error code

Versions