-
Notifications
You must be signed in to change notification settings - Fork 433
libgit2-sys: More types and functions #1181
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
base: master
Are you sure you want to change the base?
Conversation
Added type definition for struct `libgit2-sys::git_odb_stream`. Previously incorrectly defined as an opaque enum. See git2/odb_backend.h line 196. Added type definition for enum `git_odb_stream_t`. I believe it corresponds to the `mode` field of `git_odb_stream`, but that's just a guess. See git2/odb_backend.h line 182.
Added struct `git_config_backend_entry`. See git2/sys/config.h line 27. Added struct `git_config_iterator`. Previously incorrectly defined as an empty enum. See git2/sys/config.h line 49. Added struct `git_config_backend`. See git2/sys/config.h line 69. Added constant `GIT_CONFIG_BACKEND_VERSION`. See git2/sys/config.h line 103. Added struct `git_config_backend_memory_options`. See git2/sys/config.h line 148. Added constant `GIT_CONFIG_BACKEND_MEMORY_OPTIONS_VERSION`. See git2/sys/config.h line 165. Added function `git_config_add_backend`. See git2/sys/config.h line 140. Added function `git_config_backend_from_string`. See git2/sys/config.h line 181. Added function `git_config_backend_from_values`. See git2/sys/config.h line 197. Added function `git_config_init_backend`. See git2/sys/config.h line 116.
Added struct `git_reference_iterator`. See git2/sys/refdb_backend.h line 35.
`git_commit_nth_gen_ancestor`'s first argument has been changed to `ancestor` from the previous `commit` to bring it closer to the actual definition (git2/commit.h line 282) and because the previous name is also used for the second argument.
|
Note: (Rust 1.88.0, Linux 6.16.0-arch2-1, libgit2 1:1.9.1-1) |
weihanglo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks mostly good to me at the first glance. I need to take a second pass on it when I have time
This PR adds a few more types and functions to libgit2-sys.
The changes should be largely correct but I might've missed a
c_intsomewhere or accidentally forgotten to make itc_uintinstead ofc_int.Full list of additions:
struct git_odb_stream(previously existed as an empty enum, exposed in git2/odb_backend.h line 196)enum git_odb_stream_t(exposed in git2/odb_backend.h line 182)struct git_config_backend_entry(exposed in git2/sys/config.h line 27)struct git_config_iterator(previously existed as an empty enum, exposed in git2/sys/config.h line 49)struct git_config_backend(exposed in git2/sys/config.h line 69)const GIT_CONFIG_BACKEND_VERSION(exposed in git2/sys/config.h line 103)struct git_config_backend_memory_options(exposed in git2/sys/config.h line 148)const GIT_CONFIG_BACKEND_MEMORY_OPTIONS_VERSION(exposed in git2/sys/config.h line 165)fn git_config_add_backend(exposed in git2/sys/config.h line 140)fn git_config_backend_from_string(exposed in git2/sys/config.h line 181)fn git_config_backend_from_values(exposed in git2/sys/config.h line 197)fn git_config_init_backend(exposed in git2/sys/config.h line 116)struct git_reference_iterator(previously existed as an empty enum, exposed in git2/sys/refdb_backend.h line 35)Additionally,
git_commit_nth_gen_ancestor's first argument was renamed toancestor(see b7ce5e6 for more comments).