24b0d3269c
- Added line hashes to compact diff preview for unchanged and added lines to enable integrity verification. - Modified compact diff preview to track line number synchronization between old and new files when processing insertions and deletions. - Fixed line number parsing in compact diff preview to handle variable-width line number fields with leading whitespace. - Extracted parsing and formatting logic into dedicated functions (parseNumberedDiffLine, formatCompactHashlineLine, syncOldLineCounters, syncNewLineCounters) for maintainability. - Updated 4 test cases to verify line hash generation, line number synchronization, and handling of variable-width fields.