diff options
| author | Jameson Miller <jamill@microsoft.com> | 2013-10-02 13:45:32 -0400 |
|---|---|---|
| committer | Jameson Miller <jamill@microsoft.com> | 2013-10-02 15:12:44 -0400 |
| commit | 5b1882254551cc9031d919c2f31c05153a665762 (patch) | |
| tree | a5a4b2fab8622f11bd70bd4388f14bc6557d07a1 /include/git2/push.h | |
| parent | 5bfead1dba919f6b47f52da675ea94407e8baf49 (diff) | |
| download | libgit2-5b1882254551cc9031d919c2f31c05153a665762.tar.gz | |
Support cancellation in push operation
This commit adds cancellation for the push operation. This work consists of:
1) Support cancellation during push operation
- During object counting phase
- During network transfer phase
- Propagate GIT_EUSER error code out to caller
2) Improve cancellation support during fetch
- Handle cancellation request during network transfer phase
- Clear error string when cancelled during indexing
3) Fix error handling in git_smart__download_pack
Cancellation during push is still only handled in the pack building and
network transfer stages of push (and not during packbuilding).
Diffstat (limited to 'include/git2/push.h')
| -rw-r--r-- | include/git2/push.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/git2/push.h b/include/git2/push.h index ecfd862d4..77ef74039 100644 --- a/include/git2/push.h +++ b/include/git2/push.h @@ -40,7 +40,7 @@ typedef struct { #define GIT_PUSH_OPTIONS_INIT { GIT_PUSH_OPTIONS_VERSION } /** Push network progress notification function */ -typedef void (*git_push_transfer_progress)( +typedef int (*git_push_transfer_progress)( unsigned int current, unsigned int total, size_t bytes, |
