Skip to content

Callback type names should be suffixed with _cb#5102

Merged
ethomson merged 2 commits into
masterfrom
ethomson/callback_names
Jun 10, 2019
Merged

Callback type names should be suffixed with _cb#5102
ethomson merged 2 commits into
masterfrom
ethomson/callback_names

Conversation

@ethomson
Copy link
Copy Markdown
Member

@ethomson ethomson commented Jun 8, 2019

The credential and trace callbacks should match the other callback naming conventions, using the _cb suffix instead of a _callback suffix.

Copy link
Copy Markdown
Contributor

@tiennou tiennou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, though a typo is involved 😉. I have a fuzzy memory that someone from Rugged had filed an issue to get us to normalize those typedefs a few months back, but couldn't find it…

Comment thread include/git2/deprecated.h Outdated
/**@{*/

typedef git_cred_sign_cb git_cred_sign_callback;
typedef git_cred_ssh_interactive_cb git_cred_ssh_interactive_callback;;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: spurious ;.

ethomson added 2 commits June 10, 2019 11:37
The credential callbacks should match the other callback naming
conventions, using the `_cb` suffix instead of a `_callback` suffix.
The trace logging callbacks should match the other callback naming
conventions, using the `_cb` suffix instead of a `_callback` suffix.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants