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

remote: introduce remote_ready_cb, deprecate resolve_url callback #6012

Merged
merged 3 commits into from
Aug 30, 2021

Conversation

ethomson
Copy link
Member

As part of my goal of making git_buf a data structure that we use to provide data to users, instead of taking data from users, this deprecates the resolve_url callback. It provides a replacement callback git_remote_ready_cb that is fired at the same time. Users can then call the new set_instance_url functions on a remote to update the URLs if they so desire.

Users may want to override the URL on a particular instance of a remote,
instead of updating the configuration.  Previously, users could use a
callback to do this, but this is not particularly idiomatic.
Introduce a new callback that fires when the remote is ready to connect.
Using a callback to set a resolve_url is not particularly idiomatic.
Deprecate it in favor of the `set_instance_url` and
`set_instance_pushurl` functions which can now be called from the
`git_remote_ready_cb` callback.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant