Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/diff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ impl Diff<'static> {
/// a patch file likely contains abbreviated object IDs, so the
/// object IDs parsed by this function will also be abreviated.
pub fn from_buffer(buffer: &[u8]) -> Result<Diff<'static>, Error> {
crate::init();
let mut diff: *mut raw::git_diff = std::ptr::null_mut();
unsafe {
// NOTE: Doesn't depend on repo, so lifetime can be 'static
Expand Down