git_repository_wrap_odb

Create a "fake" repository to wrap an object database

Create a repository object to wrap an object database to be used with the API when all you have is an object database. This doesn't have any paths associated with it, so use with care.

extern (C) nothrow @nogc public
int
git_repository_wrap_odb

Parameters

out_ libgit2.types.git_repository**

pointer to the repo

odb libgit2.types.git_odb*

the object database to wrap

Return Value

Type: int

0 or an error code

Meta