Skip to content
Discussion options

You must be logged in to vote

Thanks for the detailed report and repro. You diagnosed it correctly: the EOF-marker retry re-rendered the patch through diffy's Display, which writes a hunk's section heading back with an extra space and a blank line. The blank line re-parsed as an empty context line, so any headed hunk failed on retry.

I opened #1678. The retry now writes the @@ headers itself without the heading, then appends the marker. Matching is still exact, so content mismatches are still rejected and explicit newline changes behave as before. It includes a regression test for a headed hunk that doesn't start at line 1 and has no marker. I haven't run your repro repository or the t3code patch against it yet, so a …

Replies: 2 comments

Comment options

jdx
Sep 30, 2026 — with coder-jdx
Maintainer

You must be logged in to vote
0 replies
Answer selected by mwolson
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants