diff options
author | Ben Straub <bs@github.com> | 2012-10-19 20:05:18 -0700 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2012-10-19 20:05:18 -0700 |
commit | 9c05c17b7ac7caf7691a9056994bda735ea31c81 (patch) | |
tree | ca7703823b06e0d33d3419b896f3836abc92ad1a /tests-clar | |
parent | cd001bbbfe75a366d9658849cf6c5931440c0c01 (diff) | |
download | libgit2-9c05c17b7ac7caf7691a9056994bda735ea31c81.tar.gz |
Checkout progress now reports completed/total steps
Diffstat (limited to 'tests-clar')
-rw-r--r-- | tests-clar/checkout/index.c | 4 | ||||
-rw-r--r-- | tests-clar/checkout/tree.c | 4 | ||||
-rw-r--r-- | tests-clar/clone/network.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/tests-clar/checkout/index.c b/tests-clar/checkout/index.c index eac8515da..58b3c7e37 100644 --- a/tests-clar/checkout/index.c +++ b/tests-clar/checkout/index.c @@ -361,9 +361,9 @@ void test_checkout_index__wont_notify_of_expected_line_ending_changes(void) cl_git_pass(git_checkout_index(g_repo, &g_opts)); } -static void progress(const char *path, float progress, void *payload) +static void progress(const char *path, size_t cur, size_t tot, void *payload) { - GIT_UNUSED(path); GIT_UNUSED(progress); + GIT_UNUSED(path); GIT_UNUSED(cur); GIT_UNUSED(tot); bool *was_called = (bool*)payload; *was_called = true; } diff --git a/tests-clar/checkout/tree.c b/tests-clar/checkout/tree.c index 88d3b3467..598ea9fc7 100644 --- a/tests-clar/checkout/tree.c +++ b/tests-clar/checkout/tree.c @@ -64,9 +64,9 @@ void test_checkout_tree__can_checkout_a_subdirectory_from_a_subtree(void) cl_assert_equal_i(true, git_path_isfile("./testrepo/de/fgh/1.txt")); } -static void progress(const char *path, float progress, void *payload) +static void progress(const char *path, size_t cur, size_t tot, void *payload) { - GIT_UNUSED(path); GIT_UNUSED(progress); + GIT_UNUSED(path); GIT_UNUSED(cur); GIT_UNUSED(tot); bool *was_called = (bool*)payload; *was_called = true; } diff --git a/tests-clar/clone/network.c b/tests-clar/clone/network.c index 62d4110c6..3d78d43a3 100644 --- a/tests-clar/clone/network.c +++ b/tests-clar/clone/network.c @@ -91,9 +91,9 @@ void test_clone_network__can_prevent_the_checkout_of_a_standard_repo(void) git_buf_free(&path); } -static void checkout_progress(const char *path, float progress, void *payload) +static void checkout_progress(const char *path, size_t cur, size_t tot, void *payload) { - GIT_UNUSED(path); GIT_UNUSED(progress); + GIT_UNUSED(path); GIT_UNUSED(cur); GIT_UNUSED(tot); bool *was_called = (bool*)payload; (*was_called) = true; } |