We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f46e8ff commit 90a45bbCopy full SHA for 90a45bb
src/diff.rs
@@ -309,6 +309,7 @@ impl Diff<'static> {
309
/// a patch file likely contains abbreviated object IDs, so the
310
/// object IDs parsed by this function will also be abreviated.
311
pub fn from_buffer(buffer: &[u8]) -> Result<Diff<'static>, Error> {
312
+ crate::init();
313
let mut diff: *mut raw::git_diff = std::ptr::null_mut();
314
unsafe {
315
// NOTE: Doesn't depend on repo, so lifetime can be 'static
0 commit comments