libgit2

git_odb_get_backend

Version:

Lookup an ODB backend object by index

Signature

int git_odb_get_backend(git_odb_backend **out, git_odb *odb, size_t pos);

Parameters

In
out

output pointer to ODB backend at pos

In
odb

object database

size_t
In
pos

index into object database backend list

Returns

int

0 on success; GIT_ENOTFOUND if pos is invalid; other errors < 0

Versions