Loop over all the stashed states and issue a callback for each one.
If the callback returns a non-zero value, this will stop looping.
Repository where to find the stash.
Extra parameter to callback function.
0 on success, GIT_EUSER on non-zero callback, or error code