pub fn load_worktree_side_for_diff(
odb: &Odb,
work_tree: &Path,
rel_path: &str,
mode: u32,
config: &ConfigSet,
index_entry: Option<&IndexEntry>,
worktree_rules: Option<&WorktreeRules>,
force_read_content: bool,
) -> Result<(SideBytes, bool)>Expand description
Load worktree bytes for diffing, optionally skipping reads above core.bigFileThreshold.
Returns empty super::structured::SideBytes with binary = true when the file is not read.
When force_read_content is true, large files are read and binary payload bytes are retained
(for GIT binary patch / git apply).
ยงErrors
Returns I/O errors from the worktree path or Error from filter conversion.