git_odb_foreach

List all objects available in the database

The callback will be called for each object available in the database. Note that the objects are likely to be returned in the index order, which would make accessing the objects in that order inefficient. Return a non-zero value from the callback to stop looping.

extern (C) nothrow @nogc
int
git_odb_foreach

Parameters

db libgit2_d.types.git_odb*

database to use

cb .git_odb_foreach_cb

the callback to call for each object

payload void*

data to pass to the callback

Return Value

Type: int

0 on success, non-zero callback return value, or error code

Meta