diff options
author | Russell Belfer <rb@github.com> | 2012-11-13 14:02:59 -0800 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2012-11-14 22:55:40 -0800 |
commit | bad68c0a998116685ad75cab84210004dd2c5be1 (patch) | |
tree | d8b6db9be06ea1fcc150b5a7d2ba4cd635a174aa /tests-clar/diff/iterator.c | |
parent | 5735bf5e6ab4da347b601d4b85c09c5c701dc002 (diff) | |
download | libgit2-bad68c0a998116685ad75cab84210004dd2c5be1.tar.gz |
Add iterator for git_index object
The index iterator could previously only be created from a repo
object, but this allows creating an iterator from a `git_index`
object instead (while keeping, though renaming, the old function).
Diffstat (limited to 'tests-clar/diff/iterator.c')
-rw-r--r-- | tests-clar/diff/iterator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests-clar/diff/iterator.c b/tests-clar/diff/iterator.c index c2ab9940b..368903200 100644 --- a/tests-clar/diff/iterator.c +++ b/tests-clar/diff/iterator.c @@ -350,7 +350,7 @@ static void index_iterator_test( int count = 0; git_repository *repo = cl_git_sandbox_init(sandbox); - cl_git_pass(git_iterator_for_index_range(&i, repo, start, end)); + cl_git_pass(git_iterator_for_repo_index_range(&i, repo, start, end)); cl_git_pass(git_iterator_current(i, &entry)); while (entry != NULL) { |