git_odb_backend_loose

Create a backend for loose objects

  1. int git_odb_backend_loose(libgit2.types.git_odb_backend** out_, const(char)* objects_dir, .git_odb_backend_loose_options* opts)
    version(GIT_EXPERIMENTAL_SHA256)
    extern (C) nothrow @nogc public
    int
    git_odb_backend_loose
  2. int git_odb_backend_loose(libgit2.types.git_odb_backend** out_, const(char)* objects_dir, int compression_level, int do_fsync, uint dir_mode, uint file_mode)

Parameters

out_ libgit2.types.git_odb_backend**

location to store the odb backend pointer

objects_dir const(char)*

the Git repository's objects directory

opts .git_odb_backend_loose_options*

options for the loose object backend or NULL

Return Value

Type: int

0 or an error code

Meta