diff options
| author | Edward Thomson <ethomson@github.com> | 2016-02-25 15:11:14 -0500 |
|---|---|---|
| committer | Edward Thomson <ethomson@github.com> | 2016-03-23 17:08:37 -0400 |
| commit | 684b35c41b9166645e2edb9bc708aa7ddf9c1f24 (patch) | |
| tree | d36c6b41dcb8bdf086d097b41ff585d8202ac136 /tests | |
| parent | ac05086c40266bdd4541c06d3be532ee118ed204 (diff) | |
| download | libgit2-684b35c41b9166645e2edb9bc708aa7ddf9c1f24.tar.gz | |
iterator: disambiguate reset and reset_range
Disambiguate the reset and reset_range functions. Now reset_range
with a NULL path will clear the start or end; reset will leave the
existing start and end unchanged.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/diff/iterator.c | 4 | ||||
| -rw-r--r-- | tests/repo/iterator.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/diff/iterator.c b/tests/diff/iterator.c index 25a23eda7..b64c95415 100644 --- a/tests/diff/iterator.c +++ b/tests/diff/iterator.c @@ -54,7 +54,7 @@ static void tree_iterator_test( cl_assert_equal_i(expected_count, count); /* test reset */ - cl_git_pass(git_iterator_reset(i, NULL, NULL)); + cl_git_pass(git_iterator_reset(i)); while (!(error = git_iterator_advance(&entry, i))) { cl_assert(entry); @@ -634,7 +634,7 @@ static void workdir_iterator_test( cl_assert_equal_i(expected_count, count); cl_assert_equal_i(expected_count + expected_ignores, count_all); - cl_git_pass(git_iterator_reset(i, NULL, NULL)); + cl_git_pass(git_iterator_reset(i)); error = git_iterator_current(&entry, i); cl_assert((error == 0 && entry != NULL) || diff --git a/tests/repo/iterator.c b/tests/repo/iterator.c index c18e24a4f..5e5e4b551 100644 --- a/tests/repo/iterator.c +++ b/tests/repo/iterator.c @@ -59,7 +59,7 @@ static void expect_iterator_items( cl_assert_equal_i(expected_flat, count); - cl_git_pass(git_iterator_reset(i, NULL, NULL)); + cl_git_pass(git_iterator_reset(i)); count = 0; cl_git_pass(git_iterator_current(&entry, i)); |
