Return the current entry and advance the iterator
The pointers returned by this function are valid until the iterator is freed.
pointer to store the entry
the iterator
0 or an error code. GIT_ITEROVER if the iteration has completed