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

config: remove free ptr from git_config_entry #6804

Merged
merged 1 commit into from
Sep 25, 2024
Merged

Conversation

ethomson
Copy link
Member

While looking at the documentation, it became clear that the git_config_entry function was strange...

This is a leftover leaky abstraction. If consumers aren't meant to call the free function then they shouldn't see the free function. Move it out into a git_config_backend_entry that is, well, produced by the config backends.

This makes our code messier but is an improvement for consumers.

This is a leftover leaky abstraction. If consumers aren't meant to
_call_ the `free` function then they shouldn't _see_ the free function.
Move it out into a `git_config_backend_entry` that is, well, produced by
the config backends.

This makes our code messier but is an improvement for consumers.
@ethomson ethomson merged commit 9f34061 into main Sep 25, 2024
19 checks passed
@ethomson ethomson deleted the ethomson/config_entry branch September 25, 2024 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant