git_status_foreach

Gather file statuses and run a callback for each one.

The callback is passed the path of the file, the status (a combination of the git_status_t values above) and the payload data pointer passed into this function.

If the callback returns a non-zero value, this function will stop looping and return that value to caller.

@param repo A repository object @param callback The function to call on each file @param payload Pointer to pass through to callback function @return 0 on success, non-zero callback return value, or error code

extern (C) nothrow @nogc
int
git_status_foreach

Meta