summaryrefslogtreecommitdiff
path: root/include/git2/clone.h
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2012-10-18 12:57:47 -0700
committerBen Straub <bs@github.com>2012-10-19 19:36:22 -0700
commitaa1e86741dcd314212f738b408e507de1771fedd (patch)
tree5dcb8e6c098b34353d2b1430a66864d6f0d3bd6d /include/git2/clone.h
parent9c3a98f1b0de30ff33969e2af5b90ed448c42389 (diff)
downloadlibgit2-aa1e86741dcd314212f738b408e507de1771fedd.tar.gz
Clone: in-line callbacks for progress
Also implemented in the git2 example.
Diffstat (limited to 'include/git2/clone.h')
-rw-r--r--include/git2/clone.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/git2/clone.h b/include/git2/clone.h
index 72294c581..dc49074dc 100644
--- a/include/git2/clone.h
+++ b/include/git2/clone.h
@@ -40,7 +40,8 @@ GIT_EXTERN(int) git_clone(
git_repository **out,
const char *origin_url,
const char *workdir_path,
- git_indexer_stats *fetch_stats,
+ git_indexer_progress_callback fetch_progress_cb,
+ void *fetch_progress_payload,
git_checkout_opts *checkout_opts);
/**
@@ -56,7 +57,8 @@ GIT_EXTERN(int) git_clone_bare(
git_repository **out,
const char *origin_url,
const char *dest_path,
- git_indexer_stats *fetch_stats);
+ git_indexer_progress_callback fetch_progress_cb,
+ void *fetch_progress_payload);
/** @} */
GIT_END_DECL