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.

@param odb database to add the backend to @param path path to the objects folder for the alternate @return 0 on success; error code otherwise

extern (C) nothrow @nogc
int
git_odb_add_disk_alternate

Meta