Skip to content

Commit 59001e8

Browse files
committed
remote: rename git_push_transfer_progress callback
The `git_push_transfer_progress` is a callback and as such should be suffixed with `_cb` for consistency. Rename `git_push_transfer_progress` to `git_push_transfer_progress_cb`.
1 parent 7506d34 commit 59001e8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

include/git2/remote.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,11 +422,12 @@ typedef enum git_remote_completion_type {
422422
} git_remote_completion_type;
423423

424424
/** Push network progress notification function */
425-
typedef int GIT_CALLBACK(git_push_transfer_progress)(
425+
typedef int GIT_CALLBACK(git_push_transfer_progress_cb)(
426426
unsigned int current,
427427
unsigned int total,
428428
size_t bytes,
429429
void* payload);
430+
430431
/**
431432
* Represents an update which will be performed on the remote during push
432433
*/
@@ -537,7 +538,7 @@ struct git_remote_callbacks {
537538
* inline with pack building operations, so performance may be
538539
* affected.
539540
*/
540-
git_push_transfer_progress push_transfer_progress;
541+
git_push_transfer_progress_cb push_transfer_progress;
541542

542543
/**
543544
* See documentation of git_push_update_reference_cb

src/transports/smart_protocol.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ struct push_packbuilder_payload
978978
{
979979
git_smart_subtransport_stream *stream;
980980
git_packbuilder *pb;
981-
git_push_transfer_progress cb;
981+
git_push_transfer_progress_cb cb;
982982
void *cb_payload;
983983
size_t last_bytes;
984984
double last_progress_report_time;

0 commit comments

Comments
 (0)