Const
Find all headings and slice blocks up to the next heading or end.
Legacy helper (retained for potential future use).
Extract all "diff --git a/ b/" pairs in a patch body.
Find all headings and slice blocks up to the next heading or end.