diff options
Diffstat (limited to 'src/iterator.h')
| -rw-r--r-- | src/iterator.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/iterator.h b/src/iterator.h index 85444f11f..460f9475a 100644 --- a/src/iterator.h +++ b/src/iterator.h @@ -77,7 +77,9 @@ typedef struct { struct git_iterator { git_iterator_type_t type; git_iterator_callbacks *cb; + git_repository *repo; + git_index *index; char *start; size_t start_len; @@ -260,6 +262,11 @@ GIT_INLINE(git_repository *) git_iterator_owner(git_iterator *iter) return iter->repo; } +GIT_INLINE(git_index *) git_iterator_index(git_iterator *iter) +{ + return iter->index; +} + GIT_INLINE(git_iterator_flag_t) git_iterator_flags(git_iterator *iter) { return iter->flags; @@ -282,9 +289,6 @@ extern bool git_iterator_current_is_ignored(git_iterator *iter); extern bool git_iterator_current_tree_is_ignored(git_iterator *iter); -extern int git_iterator_cmp( - git_iterator *iter, const char *path_prefix); - /** * Get full path of the current item from a workdir iterator. This will * return NULL for a non-workdir iterator. The git_buf is still owned by |
