-
Notifications
You must be signed in to change notification settings - Fork 437
Add function: merge_file #1210
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?
Add function: merge_file #1210
Conversation
libgit2-sys/lib.rs
Outdated
| their_tree: *const git_tree, | ||
| opts: *const git_merge_options, | ||
| ) -> c_int; | ||
| pub fn git_merge_file_init_input(opts: *mut git_merge_file_input, version: c_uint) -> c_int; |
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.
This function appears to be deprecated. Should it use git_merge_file_input_init instead?
libgit2-sys/lib.rs
Outdated
| } | ||
|
|
||
| #[repr(C)] | ||
| #[derive(Copy, Clone)] |
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.
When is it valid to copy/clone this structure? It seems like if it contains pointers, that should not be allowed.
src/merge.rs
Outdated
| @@ -1,3 +1,4 @@ | |||
| use libc::{c_char, size_t}; | |||
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.
Can you combine this with the other libc import?
src/merge.rs
Outdated
| use crate::Error; | ||
| use crate::FileMode; |
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.
Can you merge all these top-level crate imports (including IntoCString) into the braced import below?
|
Thanks for the review — the changes are now updated. |
Some overlap with #635 but that PR has been open for years.