Return the next index entry in-order from the iterator.
Pointer to store the index entry in
The iterator
0, GIT_ITEROVER on iteration completion or an error code