summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2012-10-16 20:23:10 -0700
committerBen Straub <bs@github.com>2012-10-19 19:36:21 -0700
commit806426565f78ff0ee0ac12e125d59658e3ef34be (patch)
tree5cf8d85837c66ff57df689be89d111dfdab94e80 /src
parent2c8bbb27d91ec35162522079d632608fcaac2a57 (diff)
downloadlibgit2-806426565f78ff0ee0ac12e125d59658e3ef34be.tar.gz
Convert checkout_* to use progress callback
Diffstat (limited to 'src')
-rw-r--r--src/checkout.c8
-rw-r--r--src/clone.c2
2 files changed, 4 insertions, 6 deletions
diff --git a/src/checkout.c b/src/checkout.c
index 222eb26df..ef4ab8d11 100644
--- a/src/checkout.c
+++ b/src/checkout.c
@@ -387,8 +387,7 @@ cleanup:
int git_checkout_tree(
git_repository *repo,
git_object *treeish,
- git_checkout_opts *opts,
- git_indexer_stats *stats)
+ git_checkout_opts *opts)
{
git_index *index = NULL;
git_tree *tree = NULL;
@@ -421,8 +420,7 @@ cleanup:
int git_checkout_head(
git_repository *repo,
- git_checkout_opts *opts,
- git_indexer_stats *stats)
+ git_checkout_opts *opts)
{
git_reference *head;
int error;
@@ -436,7 +434,7 @@ int git_checkout_head(
if ((error = git_reference_peel(&tree, head, GIT_OBJ_TREE)) < 0)
goto cleanup;
- error = git_checkout_tree(repo, tree, opts, stats);
+ error = git_checkout_tree(repo, tree, opts);
cleanup:
git_reference_free(head);
diff --git a/src/clone.c b/src/clone.c
index 0039b146d..b84cd8dc9 100644
--- a/src/clone.c
+++ b/src/clone.c
@@ -333,7 +333,7 @@ static int clone_internal(
}
if (!retcode && should_checkout(repo, is_bare, checkout_opts))
- retcode = git_checkout_head(*out, checkout_opts, checkout_stats);
+ retcode = git_checkout_head(*out, checkout_opts);
return retcode;
}