libgit2

git_odb_backend_loose_options

Version:

Options for configuring a loose object backend.

Signature

typedef struct git_odb_backend_loose_options { unsigned int version uint32_t flags int compression_level unsigned int dir_mode unsigned int file_mode git_oid_t oid_type };

Members

unsigned int
version

version for the struct

uint32_t
flags

A combination of the git_odb_backend_loose_flag_t types.

int
compression_level

zlib compression level to use (0-9), where 1 is the fastest at the expense of larger files, and 9 produces the best compression at the expense of speed. 0 indicates that no compression should be performed. -1 is the default (currently optimizing for speed).

unsigned int
dir_mode

Permissions to use creating a directory or 0 for defaults

unsigned int
file_mode

Permissions to use creating a file or 0 for defaults

oid_type

Type of object IDs to use for this object database, or 0 for default (currently SHA1).

Versions