diffy-0.2.1_fix-adjacent-hunk-parsing.patch
561 Bytes
--- src/patch/parse.rs 2022-01-31 14:20:14.539741482 +0100
+++ src/patch/parse.rs 2022-01-31 14:21:27.058846339 +0100
@@ -193,8 +193,8 @@
fn verify_hunks_in_order<T: ?Sized>(hunks: &[Hunk<'_, T>]) -> bool {
for hunk in hunks.windows(2) {
- if hunk[0].old_range.end() >= hunk[1].old_range.start()
- || hunk[0].new_range.end() >= hunk[1].new_range.start()
+ if hunk[0].old_range.end() > hunk[1].old_range.start()
+ || hunk[0].new_range.end() > hunk[1].new_range.start()
{
return false;
}