From bb1f6087e44272371d25df9cc5610124f6cd5a01 Mon Sep 17 00:00:00 2001 From: Ben Straub Date: Tue, 19 Jun 2012 09:15:39 -0700 Subject: Add progress reporting to clone. --- include/git2/clone.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'include/git2') 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 -- cgit v1.2.1