pub fn validate_diff_input(diff: &str) -> Result<()>
Rejects input that cannot be a unified diff, with a message naming the likely cause.