git_odb_add_disk_alternate

Add an on-disk alternate to an existing Object DB.

Note that the added path must point to an objects, not to a full repository, to use it as an alternate store.

Alternate backends are always checked for objects *after* all the main backends have been exhausted.

Writing is disabled on alternate backends.

extern (C) nothrow @nogc
int
git_odb_add_disk_alternate

Parameters

odb libgit2_d.types.git_odb*

database to add the backend to

path const(char)*

path to the objects folder for the alternate

Return Value

Type: int

0 on success; error code otherwise

Meta