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.
Pointer to pass through to callback function
0 on success, non-zero callback return value, or error code