libgit2 icon indicating copy to clipboard operation
libgit2 copied to clipboard

config: remove `free` ptr from `git_config_entry`

Open ethomson opened this issue 1 year ago • 0 comments

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.

ethomson avatar Apr 29 '24 21:04 ethomson