git_odb_new

Create a new object database with no backends.

Before the ODB can be used for read/writing, a custom database backend must be manually added using git_odb_add_backend()

  1. int git_odb_new(libgit2.types.git_odb** out_, const(.git_odb_options)* opts)
    version(GIT_EXPERIMENTAL_SHA256)
    extern (C) nothrow @nogc public
    int
    git_odb_new
  2. int git_odb_new(libgit2.types.git_odb** out_)

Parameters

out_ libgit2.types.git_odb**

location to store the database pointer, if opened. Set to null if the open failed.

opts const(.git_odb_options)*

the options for this object database or NULL for defaults

Return Value

Type: int

0 or an error code

Meta