summaryrefslogtreecommitdiff
path: root/include/git2/clone.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/git2/clone.h')
-rw-r--r--include/git2/clone.h9
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