summaryrefslogtreecommitdiff
path: root/include/git2/push.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-12-10 17:23:33 +0100
committerCarlos Martín Nieto <cmn@dwim.me>2014-12-10 18:55:54 +0100
commitd524b2d3d13cd306f4405b2e48cf586c04e4e5dc (patch)
treec26d1f28514936ee311e8628a611d904194d7eba /include/git2/push.h
parentcd305c2f567678c96bccecab69f715b6063089bc (diff)
downloadlibgit2-d524b2d3d13cd306f4405b2e48cf586c04e4e5dc.tar.gz
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.
Diffstat (limited to 'include/git2/push.h')
-rw-r--r--include/git2/push.h13
1 files changed, 2 insertions, 11 deletions
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
@@ -142,15 +142,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
*
* For each of the updated references, we receive a status report in the