diff options
author | Jameson Miller <jamill@microsoft.com> | 2013-10-02 21:45:32 +0400 |
---|---|---|
committer | Jameson Miller <jamill@microsoft.com> | 2013-10-02 23:12:44 +0400 |
commit | 5b1882254551cc9031d919c2f31c05153a665762 (patch) | |
tree | a5a4b2fab8622f11bd70bd4388f14bc6557d07a1 /src/transports/smart.h | |
parent | 5bfead1dba919f6b47f52da675ea94407e8baf49 (diff) |
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 'src/transports/smart.h')
-rw-r--r-- | src/transports/smart.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transports/smart.h b/src/transports/smart.h index c52401a3c..3519477da 100644 --- a/src/transports/smart.h +++ b/src/transports/smart.h @@ -119,7 +119,7 @@ typedef struct transport_smart_caps { report_status:1; } transport_smart_caps; -typedef void (*packetsize_cb)(size_t received, void *payload); +typedef int (*packetsize_cb)(size_t received, void *payload); typedef struct { git_transport parent; |