libgit2

git_repository_wrap_odb

Version:

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.

Signature

int git_repository_wrap_odb(git_repository **out, git_odb *odb);

Parameters

In
out

pointer to the repo

In
odb

the object database to wrap

Returns

int

0 or an error code

Versions