Return the current entry and advance the iterator
pointer to store the entry
the iterator
0 or an error code. GIT_ITEROVER if the iteration has completed