diff options
author | Vicent Marti <vicent@github.com> | 2014-04-25 02:10:19 -0700 |
---|---|---|
committer | Vicent Marti <vicent@github.com> | 2014-04-25 02:10:19 -0700 |
commit | 8443ed6c1d1237e203474a772fb4281c382df6ac (patch) | |
tree | 3e892ab6b4432bc091a91db3d6c0441a95373c54 /include/git2/remote.h | |
parent | 332e4f20273a424efcea06ca1550146c816f4404 (diff) | |
parent | f70cfd34f5c20c447feb19c2e616315764ea7260 (diff) | |
download | libgit2-8443ed6c1d1237e203474a772fb4281c382df6ac.tar.gz |
Merge pull request #2284 from jacquesg/push-progress-callback
Fire progress and update tips callbacks also for pushes.
Diffstat (limited to 'include/git2/remote.h')
-rw-r--r-- | include/git2/remote.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h index ddde3e85e..11e1e26d0 100644 --- a/include/git2/remote.h +++ b/include/git2/remote.h @@ -457,7 +457,7 @@ struct git_remote_callbacks { * progress side-band will be passed to this function (this is * the 'counting objects' output. */ - int (*progress)(const char *str, int len, void *data); + git_transport_message_cb sideband_progress; /** * Completion is called when different parts of the download @@ -472,14 +472,14 @@ struct git_remote_callbacks { * Returning GIT_PASSTHROUGH will make libgit2 behave as * though this field isn't set. */ - int (*credentials)(git_cred **cred, const char *url, const char *username_from_url, unsigned int allowed_types, void *data); + git_cred_acquire_cb credentials; /** * During the download of new data, this will be regularly * called with the current count of progress done by the * indexer. */ - int (*transfer_progress)(const git_transfer_progress *stats, void *data); + git_transfer_progress_cb transfer_progress; /** * Each time a reference is updated locally, this function |