diff options
author | Ben Straub <bs@github.com> | 2012-10-18 12:57:47 -0700 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2012-10-19 19:36:22 -0700 |
commit | aa1e86741dcd314212f738b408e507de1771fedd (patch) | |
tree | 5dcb8e6c098b34353d2b1430a66864d6f0d3bd6d /include/git2/clone.h | |
parent | 9c3a98f1b0de30ff33969e2af5b90ed448c42389 (diff) | |
download | libgit2-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.h | 6 |
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 |