Reproduction steps
Build a program that expects that all versions >= 1.8.2 will have the pre-1.8.0 constness of git_commit_create and friends.
See horizon-eda/horizon@3b6b783
Expected behavior
Build passes.
Actual behavior
Build fails: https://github.com/horizon-eda/horizon/actions/runs/11576015213/job/32223990024?pr=789
Version of libgit2 (release number or SHA1)
1.8.3
Operating system(s) tested
Arch Linux