pub fn generate_patch(lines: &[DiffLine]) -> StringExpand description
Generates a git unified patch from DiffLines.
The output is suitable for git apply or as a .diff file.
Lines without a file_path are skipped since patches require file context.