Gather file statuses and run a callback for each one.
The callback is passed the path of the file, the status and the data pointer passed to this function. If the callback returns something other than GIT_SUCCESS, this function will return that value.
the function to call on each file
GIT_SUCCESS or the return value of the callback which did not return 0;