summaryrefslogtreecommitdiff
path: root/include/git2/checkout.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/git2/checkout.h')
-rw-r--r--include/git2/checkout.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/include/git2/checkout.h b/include/git2/checkout.h
index b4f9ad081..d0190c260 100644
--- a/include/git2/checkout.h
+++ b/include/git2/checkout.h
@@ -65,9 +65,15 @@ typedef struct git_checkout_opts {
const git_oid *blob_oid,
int file_mode,
void *payload);
-
void *notify_payload;
+ /* Optional callback to notify the consumer of checkout progress. */
+ void (* progress_cb)(
+ const char *path,
+ float progress,
+ void *payload);
+ void *progress_payload;
+
/** When not NULL, array of fnmatch patterns specifying
* which paths should be taken into account
*/
@@ -101,8 +107,7 @@ GIT_EXTERN(int) git_checkout_head(
*/
GIT_EXTERN(int) git_checkout_index(
git_repository *repo,
- git_checkout_opts *opts,
- git_indexer_stats *stats);
+ git_checkout_opts *opts);
/**
* Updates files in the index and working tree to match the content of the