From d524b2d3d13cd306f4405b2e48cf586c04e4e5dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Wed, 10 Dec 2014 17:23:33 +0100 Subject: push: fold unpack_ok() into finish() The push cannot be successful if we sent a bad packfile. We should return an error in that case instead of storing it elsewhere. --- include/git2/push.h | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'include/git2') diff --git a/include/git2/push.h b/include/git2/push.h index cbf115661..e67bbf1ea 100644 --- a/include/git2/push.h +++ b/include/git2/push.h @@ -131,8 +131,8 @@ GIT_EXTERN(int) git_push_update_tips( * Actually push all given refspecs * * Note: To check if the push was successful (i.e. all remote references - * have been updated as requested), you need to call both - * `git_push_unpack_ok` and `git_push_status_foreach`. The remote + * have been updated as requested), you need to call + * `git_push_status_foreach`. The remote * repository might have refused to update some or all of the references. * * @param push The push object @@ -141,15 +141,6 @@ GIT_EXTERN(int) git_push_update_tips( */ GIT_EXTERN(int) git_push_finish(git_push *push); -/** - * Check if remote side successfully unpacked - * - * @param push The push object - * - * @return true if remote side successfully unpacked, false otherwise - */ -GIT_EXTERN(int) git_push_unpack_ok(const git_push *push); - /** * Invoke callback `cb' on each status entry * -- cgit v1.2.1