pub fn parse(buf: &[u8]) -> Result<Vec<FileEdit>, DiffError>
Parse a diff document (with or without its SYN heading), refusing everything DIFF.md lists under “What a diff may not hold”.