git_status_foreach_ext

Gather file status information and run callbacks as requested.

This is an extended version of the git_status_foreach() API that allows for more granular control over which paths will be processed and in what order. See the git_status_options structure for details about the additional controls that this makes available.

Note that if a pathspec is given in the git_status_options to filter the status, then the results from rename detection (if you enable it) may not be accurate. To do rename detection properly, this must be called with no pathspec so that all files can be considered.

extern (C) nothrow @nogc
int
git_status_foreach_ext

Parameters

repo libgit2_d.types.git_repository*

Repository object

opts const(.git_status_options)*

Status options structure

callback .git_status_cb

The function to call on each file

payload void*

Pointer to pass through to callback function

Return Value

Type: int

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

Meta