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, int compression_level, int do_fsync);

Parameters

In
out

location to store the odb backend pointer

const char *
In
objects_dir

the Git repository's objects directory

int
In
compression_level

zlib compression level to use

int
In
do_fsync

whether to do an fsync() after writing (currently ignored)

Returns

int

0 or an error code

Versions