diff options
author | Ben Straub <bstraub@github.com> | 2012-06-19 09:15:39 -0700 |
---|---|---|
committer | Ben Straub <bstraub@github.com> | 2012-06-21 09:53:44 -0700 |
commit | bb1f6087e44272371d25df9cc5610124f6cd5a01 (patch) | |
tree | e6610241b8bd73a53622af4eec680e4799d63c05 /include/git2 | |
parent | 764df57e82c337a70f55e320bf31acb50c6ffacd (diff) | |
download | libgit2-bb1f6087e44272371d25df9cc5610124f6cd5a01.tar.gz |
Add progress reporting to clone.
Diffstat (limited to 'include/git2')
-rw-r--r-- | include/git2/clone.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/git2/clone.h b/include/git2/clone.h index 7936282f..5468f09b 100644 --- a/include/git2/clone.h +++ b/include/git2/clone.h @@ -9,6 +9,7 @@ #include "common.h" #include "types.h" +#include "indexer.h" /** @@ -25,10 +26,11 @@ GIT_BEGIN_DECL * * @param out pointer that will receive the resulting repository object * @param origin_url repository to clone from - * @param dest_path local directory to clone to + * @param workdir_path local directory to clone to + * @param stats pointer to structure that receives progress information (may be NULL) * @return 0 on success, GIT_ERROR otherwise (use git_error_last for information about the error) */ -GIT_EXTERN(int) git_clone(git_repository **out, const char *origin_url, const char *dest_path); +GIT_EXTERN(int) git_clone(git_repository **out, const char *origin_url, const char *workdir_path, git_indexer_stats *stats); /** * TODO @@ -36,9 +38,10 @@ GIT_EXTERN(int) git_clone(git_repository **out, const char *origin_url, const ch * @param out pointer that will receive the resulting repository object * @param origin_url repository to clone from * @param dest_path local directory to clone to + * @param stats pointer to structure that receives progress information (may be NULL) * @return 0 on success, GIT_ERROR otherwise (use git_error_last for information about the error) */ -GIT_EXTERN(int) git_clone_bare(git_repository **out, const char *origin_url, const char *dest_path); +GIT_EXTERN(int) git_clone_bare(git_repository **out, const char *origin_url, const char *dest_path, git_indexer_stats *stats); /** @} */ GIT_END_DECL |