From 5cf9875a4f6ee6fa26f5617aca8433dd49c72751 Mon Sep 17 00:00:00 2001 From: Russell Belfer Date: Tue, 18 Dec 2012 15:19:24 -0800 Subject: 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. --- src/iterator.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/iterator.h') 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 -- cgit v1.2.1