Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

credentials: provide backcompat for opaque structs #5465

Merged
merged 1 commit into from
Mar 26, 2020

Conversation

ethomson
Copy link
Member

The credential structures are now opaque and defined in sys/credential.h. However, we should continue to provide them for backward compatibility, unless GIT_DEPRECATED_HARD is set.

Fixes #5415

The credential structures are now opaque and defined in
`sys/credential.h`.  However, we should continue to provide them for
backward compatibility, unless `GIT_DEPRECATED_HARD` is set.
Copy link
Member

@pks-t pks-t left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks @ethomson!

* definition has moved into the `sys/credential.h` header; include
* them here for backward compatibility.
*/
#include "sys/credential.h"
Copy link
Member

Choose a reason for hiding this comment

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

I thought of adding these headers to "include/git2/credential.h", but this is definitely the better location to have it.

@pks-t pks-t merged commit 9a49031 into master Mar 26, 2020
@ethomson ethomson deleted the ethomson/cred_deprecation branch June 3, 2020 09:06
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.

0.99.0: kind of ABI/API changes issue
2 participants