commit f486745273f4d3c8f6b15d7041d7ab5b3e58b071 from: Stefan Sperling date: Sat Oct 17 23:05:15 2020 UTC don't require both + and - chunks in diff_chunk_context_load_change() commit - bdfcb0869a9b731044cf3b1acc797a805dd8eed9 commit + f486745273f4d3c8f6b15d7041d7ab5b3e58b071 blob - 5afb38442065c67a00db9ee4ff61c2348c491507 blob + 2e90b6827fa608951bc5d15d8157aa5fbe1f8ba1 --- lib/diff_output_unidiff.c +++ lib/diff_output_unidiff.c @@ -133,7 +133,7 @@ diff_chunk_context_load_change(struct diff_chunk_conte if (t != CHUNK_MINUS && t != CHUNK_PLUS) { if (nchunks_used) (*nchunks_used)++; - if (seen_minus && seen_plus) + if (seen_minus || seen_plus) break; else continue;