git_odb_add_backend

Add a custom backend to an existing Object DB

The backends are checked in relative ordering, based on the value of the priority parameter.

Read <sys/odb_backend.h> for more information.

extern (C) nothrow @nogc
int
git_odb_add_backend

Parameters

odb libgit2_d.types.git_odb*

database to add the backend to

backend libgit2_d.types.git_odb_backend*

pointer to a git_odb_backend instance

priority int

Value for ordering the backends queue

Return Value

Type: int

0 on success; error code otherwise

Meta