diff options
author | Ben Straub <bs@github.com> | 2012-10-16 20:16:21 -0700 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2012-10-19 19:34:15 -0700 |
commit | 2c8bbb27d91ec35162522079d632608fcaac2a57 (patch) | |
tree | a866bf4d5b75b641e2067d298a1422ed2538f11c /include | |
parent | d57c47dc07044b4fd3f5e9d57615329692823111 (diff) | |
download | libgit2-2c8bbb27d91ec35162522079d632608fcaac2a57.tar.gz |
Convert checkout_index to use progress callback
Diffstat (limited to 'include')
-rw-r--r-- | include/git2/checkout.h | 11 |
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 |