Iterate over all submodules of a repository.
The repository
Function to be called with the name of each submodule. Return a non-zero value to terminate the iteration.
Extra data to pass to callback
0 on success, -1 on error, or non-zero return value of callback