2013/9/6 Pádraig Brady <[email protected]>:
>> Patch doesn't recognize the hunk in this case, it treats everything
>> after line 8 of tempname.diff as garbage. The parser either requires
>> an explicit file name or a patch header (the --- and +++ lines in
>> unified format) followed by a number of valid hunks; everything else
>> is treated as "garbage".
>
> Even if it's another hunk in the same file?

Yes, it doesn't know that it's supposed to still be in the same file.

>> It's not so hard to make patch recognize such hunks again, but
>> then it will more easily misinterpret other text as part of a patch --
>> it's not so clear that things would improve.
>
> OK I understand the tradeoffs, but in this case
> it's very surprising that patch ignores the hunk marker on line 9

I agree.

Andreas

Reply via email to