return tree_iterator_advance(out, i);
}
+static int tree_iterator_advance_over(
+ const git_index_entry **out,
+ git_iterator_status_t *status,
+ git_iterator *i)
+{
+ *status = GIT_ITERATOR_STATUS_NORMAL;
+ return git_iterator_advance(out, i);
+}
+
static void tree_iterator_clear(tree_iterator *iter)
{
while (iter->frames.size)
tree_iterator_current,
tree_iterator_advance,
tree_iterator_advance_into,
- NULL, /* advance_over */
+ tree_iterator_advance_over,
tree_iterator_reset,
tree_iterator_reset_range,
tree_iterator_at_end,
git_iterator_status_t *status,
git_iterator *iter)
{
- if (iter->cb->advance_over)
- return iter->cb->advance_over(entry, status, iter);
-
- *status = GIT_ITERATOR_STATUS_NORMAL;
- return git_iterator_advance(entry, iter);
+ return iter->cb->advance_over(entry, status, iter);
}
/**