diff options
| author | Russell Belfer <rb@github.com> | 2013-12-09 10:17:47 -0800 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2013-12-11 10:57:50 -0800 |
| commit | 373cf6a932a64d1cbe5f5cd8333546dcc2ca0b92 (patch) | |
| tree | db7ea9e143659e4cc6056cfb4467e29adfe81687 /include/git2/push.h | |
| parent | 26c1cb91beccb44425864bd233ed0e35f5801868 (diff) | |
| download | libgit2-373cf6a932a64d1cbe5f5cd8333546dcc2ca0b92.tar.gz | |
Update docs for new callback return value behavior
Diffstat (limited to 'include/git2/push.h')
| -rw-r--r-- | include/git2/push.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/git2/push.h b/include/git2/push.h index 77ef74039..12f0e7f2c 100644 --- a/include/git2/push.h +++ b/include/git2/push.h @@ -132,17 +132,19 @@ GIT_EXTERN(int) git_push_finish(git_push *push); GIT_EXTERN(int) git_push_unpack_ok(git_push *push); /** - * Call callback `cb' on each status + * Invoke callback `cb' on each status entry * * For each of the updated references, we receive a status report in the * form of `ok refs/heads/master` or `ng refs/heads/master <msg>`. * `msg != NULL` means the reference has not been updated for the given * reason. * + * Return a non-zero value from the callback to stop the loop. + * * @param push The push object * @param cb The callback to call on each object * - * @return 0 on success, GIT_EUSER on non-zero callback, or error code + * @return 0 on success, non-zero callback return value, or error code */ GIT_EXTERN(int) git_push_status_foreach(git_push *push, int (*cb)(const char *ref, const char *msg, void *data), |
