diff options
author | Jacques Germishuys <jacquesg@striata.com> | 2014-04-20 19:19:13 +0200 |
---|---|---|
committer | Jacques Germishuys <jacquesg@striata.com> | 2014-04-20 22:06:45 +0200 |
commit | 9effa2fb72f20332c2c8a83540bb224a32e0265b (patch) | |
tree | 9feff060200e617dabf5a2b6383be4d7ac7dda09 /include/git2 | |
parent | bfc50f83f829afe52c10f615c4f7efa478a83098 (diff) | |
download | libgit2-9effa2fb72f20332c2c8a83540bb224a32e0265b.tar.gz |
Fire progress callbacks also for pushes.
It's not very useful to only know that a pre-receive hook has declined
a push, you probably want to know why.
Diffstat (limited to 'include/git2')
-rw-r--r-- | include/git2/remote.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h index d57321f03..88040d49c 100644 --- a/include/git2/remote.h +++ b/include/git2/remote.h @@ -455,7 +455,8 @@ struct git_remote_callbacks { /** * Textual progress from the remote. Text send over the * progress side-band will be passed to this function (this is - * the 'counting objects' output. + * the 'counting objects' output. This callback should return a value less + * than zero to cancel the operation. */ int (*progress)(const char *str, int len, void *data); |