From 9effa2fb72f20332c2c8a83540bb224a32e0265b Mon Sep 17 00:00:00 2001 From: Jacques Germishuys Date: Sun, 20 Apr 2014 19:19:13 +0200 Subject: 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. --- include/git2/remote.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/git2') 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); -- cgit v1.2.1