git_odb_backend_loose

Create a backend for loose objects

extern (C) nothrow @nogc
int
git_odb_backend_loose

Parameters

out_ libgit2_d.types.git_odb_backend**

location to store the odb backend pointer

objects_dir const(char)*

the Git repository's objects directory

compression_level int

zlib compression level to use

do_fsync int

whether to do an fsync() after writing

dir_mode uint

permissions to use creating a directory or 0 for defaults

file_mode uint

permissions to use creating a file or 0 for defaults

Return Value

Type: int

0 or an error code

Meta