diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2015-07-28 19:41:27 +0300 |
---|---|---|
committer | Edward Thomson <ethomson@microsoft.com> | 2015-08-29 01:39:47 +0300 |
commit | ed1c64464a4e3126eef5d74d2c14c19133fa9cd8 (patch) | |
tree | 8105397838d42450ae6bd38efe4479cf377eee7b /tests/submodule | |
parent | 126932eb0b3986784915acb4fab8f4137d162651 (diff) |
iterator: use an options struct instead of args
Diffstat (limited to 'tests/submodule')
-rw-r--r-- | tests/submodule/status.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/submodule/status.c b/tests/submodule/status.c index 6721ee92a..5f4e62053 100644 --- a/tests/submodule/status.c +++ b/tests/submodule/status.c @@ -264,6 +264,7 @@ static int confirm_submodule_status( void test_submodule_status__iterator(void) { git_iterator *iter; + git_iterator_options iter_opts = GIT_ITERATOR_OPTIONS_INIT; const git_index_entry *entry; size_t i; static const char *expected[] = { @@ -308,9 +309,10 @@ void test_submodule_status__iterator(void) git_status_options opts = GIT_STATUS_OPTIONS_INIT; git_index *index; + iter_opts.flags = GIT_ITERATOR_IGNORE_CASE | GIT_ITERATOR_INCLUDE_TREES; + cl_git_pass(git_repository_index(&index, g_repo)); - cl_git_pass(git_iterator_for_workdir(&iter, g_repo, index, NULL, - GIT_ITERATOR_IGNORE_CASE | GIT_ITERATOR_INCLUDE_TREES, NULL, NULL)); + cl_git_pass(git_iterator_for_workdir(&iter, g_repo, index, NULL, &iter_opts)); for (i = 0; !git_iterator_advance(&entry, iter); ++i) cl_assert_equal_s(expected[i], entry->path); |