Skip to content

Conversation

@chalharu
Copy link

Some overlap with #635 but that PR has been open for years.

@rustbot rustbot added the S-waiting-on-review Status: Waiting on review label Jan 25, 2026
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;
Copy link
Contributor

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?

}

#[repr(C)]
#[derive(Copy, Clone)]
Copy link
Contributor

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};
Copy link
Contributor

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
Comment on lines 11 to 12
use crate::Error;
use crate::FileMode;
Copy link
Contributor

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?

@chalharu
Copy link
Author

chalharu commented Feb 1, 2026

Thanks for the review — the changes are now updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Waiting on review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants