git_reference_foreach_name

Perform a callback on the fully-qualified name of each reference.

The callback function will be called for each reference in the repository, receiving the name of the reference and the payload value passed to this method. Returning a non-zero value from the callback will terminate the iteration.

extern (C) nothrow @nogc
int
git_reference_foreach_name

Parameters

repo libgit2_d.types.git_repository*

Repository where to find the refs

callback git_reference_foreach_name_cb

Function which will be called for every listed ref name

payload void*

Additional data to pass to the callback

Return Value

Type: int

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

Meta