summaryrefslogtreecommitdiff
path: root/tests/diff/iterator.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@github.com>2016-02-25 15:11:14 -0500
committerEdward Thomson <ethomson@github.com>2016-03-23 17:08:37 -0400
commit684b35c41b9166645e2edb9bc708aa7ddf9c1f24 (patch)
treed36c6b41dcb8bdf086d097b41ff585d8202ac136 /tests/diff/iterator.c
parentac05086c40266bdd4541c06d3be532ee118ed204 (diff)
downloadlibgit2-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/diff/iterator.c')
-rw-r--r--tests/diff/iterator.c4
1 files changed, 2 insertions, 2 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) ||