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, unsigned int dir_mode, unsigned int file_mode);

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)

unsigned int
In
dir_mode

permissions to use creating a directory or 0 for defaults

unsigned int
In
file_mode

permissions to use creating a file or 0 for defaults

Returns

int

0 or an error code

Versions