-
Notifications
You must be signed in to change notification settings - Fork 426
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
Open
tecc
wants to merge
9
commits into
rust-lang:master
Choose a base branch
from
tecc:feat/more-sys-bindings
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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_int
somewhere or accidentally forgotten to make itc_uint
instead 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).