apply-patch: sort replacements and add regression tests (#3425)
- Ensure replacements are applied in index order for determinism. - Add tests for addition chunk followed by removal and worktree-aware helper. This fixes a panic I observed. Co-authored-by: Codex <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com>
J
Jeremy Rose committed
377af757308dd9a3324bf5207519a658049bf321
Parent: 86e0f31
Committed by GitHub <noreply@github.com>
on 9/11/2025, 4:07:03 PM