libgit2

git_odb_backend_loose

Version:

Create a backend for loose objects

Signature

int git_odb_backend_loose(git_odb_backend **out, const char *objects_dir, git_odb_backend_loose_options *opts);

Parameters

Out
out

location to store the odb backend pointer

const char *
In
objects_dir

the Git repository's objects directory

In
opts

options for the loose object backend or NULL

Returns

int

0 or an error code

Versions