Skip to main content

load_odb_blob_side_for_diff

Function load_odb_blob_side_for_diff 

Source
pub fn load_odb_blob_side_for_diff(
    odb: &Odb,
    oid: &ObjectId,
    path: Option<&str>,
    blob_reads: Option<&AtomicUsize>,
    force_read_content: bool,
) -> Result<(SideBytes, bool)>
Expand description

Load ODB blob bytes for diffing, skipping inflation when over core.bigFileThreshold.

Returns empty SideBytes with binary = true when content is not read. When force_read_content is true, large blobs are inflated and binary payload bytes are retained (for GIT binary patch / git apply).

ยงErrors

Propagates object database and config errors.