diff options
author | Russell Belfer <rb@github.com> | 2012-12-06 13:26:58 -0800 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2012-12-10 15:38:28 -0800 |
commit | 9950d27ab62cc31a3ebf1944fd33dd65432be790 (patch) | |
tree | ca7c8efe8b4a5d6e2adc0ae66e26d22a03c76155 /tests-clar/diff/iterator.c | |
parent | 4cbe9a1be18338b7e223b42e6019c58181204123 (diff) | |
download | libgit2-9950d27ab62cc31a3ebf1944fd33dd65432be790.tar.gz |
Clean up iterator APIs
This removes the need to explicitly pass the repo into iterators
where the repo is implied by the other parameters. This moves
the repo to be owned by the parent struct. Also, this has some
iterator related updates to the internal diff API to lay the
groundwork for checkout improvements.
Diffstat (limited to 'tests-clar/diff/iterator.c')
-rw-r--r-- | tests-clar/diff/iterator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests-clar/diff/iterator.c b/tests-clar/diff/iterator.c index 1d8396099..c97e09a67 100644 --- a/tests-clar/diff/iterator.c +++ b/tests-clar/diff/iterator.c @@ -35,7 +35,7 @@ static void tree_iterator_test( git_repository *repo = cl_git_sandbox_init(sandbox); cl_assert(t = resolve_commit_oid_to_tree(repo, treeish)); - cl_git_pass(git_iterator_for_tree_range(&i, repo, t, start, end)); + cl_git_pass(git_iterator_for_tree_range(&i, t, start, end)); cl_git_pass(git_iterator_current(i, &entry)); while (entry != NULL) { @@ -294,7 +294,7 @@ void test_diff_iterator__tree_special_functions(void) repo, "24fa9a9fc4e202313e24b648087495441dab432b"); cl_assert(t != NULL); - cl_git_pass(git_iterator_for_tree_range(&i, repo, t, NULL, NULL)); + cl_git_pass(git_iterator_for_tree_range(&i, t, NULL, NULL)); cl_git_pass(git_iterator_current(i, &entry)); while (entry != NULL) { |