Skip to main content

compute_file_hash

Function compute_file_hash 

Source
pub fn compute_file_hash(file: &DiffFile) -> u64
Expand description

Compute a stable hash of a file’s diff content (hunk headers + line types + line content). Used to detect whether a file’s diff has changed between refreshes.