pub fn detect_renames(
odb: &Odb,
entries: Vec<DiffEntry>,
threshold: u32,
) -> Vec<DiffEntry>Expand description
Detect renames by pairing Deleted and Added entries with similar content.
threshold is the minimum similarity percentage (0–100) for a pair to
be considered a rename (Git’s default is 50%). The function reads blob
content from the ODB to compute a line-level similarity score.
Exact-OID matches are always 100% similar regardless of content.