Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit 85a6d5f

Browse files
committed
push: reword comment on finish()
This should make it clearer what the return value implies.
1 parent d524b2d commit 85a6d5f

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

include/git2/push.h

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,14 @@ GIT_EXTERN(int) git_push_update_tips(
128128
const char *reflog_message);
129129

130130
/**
131-
* Actually push all given refspecs
131+
* Perform the push
132132
*
133-
* Note: To check if the push was successful (i.e. all remote references
134-
* have been updated as requested), you need to call
135-
* `git_push_status_foreach`. The remote
136-
* repository might have refused to update some or all of the references.
133+
* This function will return an error in case of a protocol error or
134+
* the server being unable to unpack the data we sent.
135+
*
136+
* The return value does not reflect whether the server accepted or
137+
* refused any reference updates. Use `git_push_status_foreach()` in
138+
* order to find out which updates were accepted or rejected.
137139
*
138140
* @param push The push object
139141
*

0 commit comments

Comments
 (0)