pub fn check_diff_size(diff: &str, limit: usize) -> Result<(), PreflightError>
Checks whether the diff content exceeds the given limit.
Returns Ok(()) if within limit, Err(DiffTooLarge) if exceeded.