summaryrefslogtreecommitdiff
path: root/tests-clar
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2012-10-17 15:30:22 +0200
committerBen Straub <bs@github.com>2012-10-19 19:36:22 -0700
commit0ae81fc479bf3cf7ed31b3e3b070de7990102f1d (patch)
tree822324b25c1617c04d5fde7c2c6f0e28a8fc9c0f /tests-clar
parent2b7efe03406411dd8fe25bcc15b0783313097692 (diff)
downloadlibgit2-0ae81fc479bf3cf7ed31b3e3b070de7990102f1d.tar.gz
index: remove read_tree() progress indicator
git_index_read_tree() was exposing a parameter to provide the user with a progress indicator. Unfortunately, due to the recursive nature of the tree walk, the maximum number of items to process was unknown. Thus, the indicator was only counting processed entries, without providing any information how the number of remaining items.
Diffstat (limited to 'tests-clar')
-rw-r--r--tests-clar/checkout/index.c2
-rw-r--r--tests-clar/index/read_tree.c2
-rw-r--r--tests-clar/status/worktree.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests-clar/checkout/index.c b/tests-clar/checkout/index.c
index 944d679f8..a21af5f60 100644
--- a/tests-clar/checkout/index.c
+++ b/tests-clar/checkout/index.c
@@ -14,7 +14,7 @@ static void reset_index_to_treeish(git_object *treeish)
cl_git_pass(git_object_peel(&tree, treeish, GIT_OBJ_TREE));
cl_git_pass(git_repository_index(&index, g_repo));
- cl_git_pass(git_index_read_tree(index, (git_tree *)tree, NULL));
+ cl_git_pass(git_index_read_tree(index, (git_tree *)tree));
cl_git_pass(git_index_write(index));
git_object_free(tree);
diff --git a/tests-clar/index/read_tree.c b/tests-clar/index/read_tree.c
index 0479332dc..c657d4f71 100644
--- a/tests-clar/index/read_tree.c
+++ b/tests-clar/index/read_tree.c
@@ -33,7 +33,7 @@ void test_index_read_tree__read_write_involution(void)
/* read-tree */
git_tree_lookup(&tree, repo, &expected);
- cl_git_pass(git_index_read_tree(index, tree, NULL));
+ cl_git_pass(git_index_read_tree(index, tree));
git_tree_free(tree);
cl_git_pass(git_tree_create_fromindex(&tree_oid, index));
diff --git a/tests-clar/status/worktree.c b/tests-clar/status/worktree.c
index 908d34510..4ff315f84 100644
--- a/tests-clar/status/worktree.c
+++ b/tests-clar/status/worktree.c
@@ -486,7 +486,7 @@ static void fill_index_wth_head_entries(git_repository *repo, git_index *index)
cl_git_pass(git_commit_lookup(&commit, repo, &oid));
cl_git_pass(git_commit_tree(&tree, commit));
- cl_git_pass(git_index_read_tree(index, tree, NULL));
+ cl_git_pass(git_index_read_tree(index, tree));
cl_git_pass(git_index_write(index));
git_tree_free(tree);