git_reference_iterator

Every backend's iterator must have a pointer to itself as the first element, so the API can talk to it. You'd define your iterator as

struct my_iterator { git_reference_iterator parent; ... }

and assign iter->parent.backend to your git_refdb_backend.

Members

Variables

db
libgit2_d.types.git_refdb* db;
Undocumented in source.
free
void function(.git_reference_iterator* iter) free;

Free the iterator

next
int function(libgit2_d.types.git_reference** ref_, .git_reference_iterator* iter) next;

Return the current reference and advance the iterator.

next_name
int function(const(char)** ref_name, .git_reference_iterator* iter) next_name;

Return the name of the current reference and advance the iterator

Meta