summaryrefslogtreecommitdiff
path: root/src/iterator.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-12-18 15:19:24 -0800
committerRussell Belfer <rb@github.com>2013-01-04 15:47:42 -0800
commit5cf9875a4f6ee6fa26f5617aca8433dd49c72751 (patch)
tree95f749b7d3e7eeb546148d21458ebfa33248c3dc /src/iterator.h
parent7e5c8a5b41ca660def7de23fd32b942878a6ee24 (diff)
downloadlibgit2-5cf9875a4f6ee6fa26f5617aca8433dd49c72751.tar.gz
Add index updating to checkout
Make checkout update entries in the index for all files that are updated and/or removed, unless flag GIT_CHECKOUT_DONT_UPDATE_INDEX is given. To do this, iterators were extended to allow a little more introspection into the index being iterated over, etc.
Diffstat (limited to 'src/iterator.h')
-rw-r--r--src/iterator.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/iterator.h b/src/iterator.h
index 8bcb6fb0c..ccdab4d94 100644
--- a/src/iterator.h
+++ b/src/iterator.h
@@ -193,4 +193,12 @@ extern int git_iterator_cmp(
extern int git_iterator_current_workdir_path(
git_iterator *iter, git_buf **path);
+
+extern git_index *git_iterator_index_get_index(git_iterator *iter);
+
+extern git_iterator_type_t git_iterator_inner_type(git_iterator *iter);
+
+extern git_iterator *git_iterator_spoolandsort_inner_iterator(
+ git_iterator *iter);
+
#endif