pub fn read_worktree_side_bytes_for_diff(
odb: &Odb,
work_tree: &Path,
rel_path: &str,
mode: u32,
config: &ConfigSet,
index_entry: Option<&IndexEntry>,
worktree_rules: Option<&WorktreeRules>,
) -> Result<Vec<u8>>Expand description
Read worktree file bytes in Git (repository) form for line diffs against index or tree blobs.
Applies the same .gitattributes, filter, and line-ending rules as
diff_index_to_worktree. Pass the stage-0 IndexEntry when available so
autocrlf index-guard normalization matches status and raw diff collection.
ยงErrors
Returns I/O errors from the worktree path or Error from filter conversion.