-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
interdiff does not reverse a patch correctly #18
Comments
EDIT: adds Hello @teo1978, did you try to use the option But anyway, I have too an issue with You can grab this patch as an example (click on the "plain" link for downloading the raw content) When I apply the vanilla patch, it works as intended, and I can recreate this patch simply with the However, when I call
And of course, when I apply this reverse patch, it doesn’t correctly reverse to the original file:
As you might noticed, the modifications from the 3rd and 4th hunks of text are missing in the "new" Best regards, |
Sorry, I forgot to mention the current version: |
interdiff without quiet ends prematurely with "interdiff: Whitespace damage detected in patch #1" |
According to
man interdiff
:(that is,
interdiff file.patch /dev/null
is supposed to reverse the patch infile.patch
)That's bullshit. The output is not (or not always) a valid reversed patch.
I attach a patch file 550.patch which is the diff from file1.php to file2.php. I have tried:
and then to apply the output supposed-to-be reversed patch to file2.php. Some parts were rejected.
550.patch.txt
550reversed.patch.txt
The text was updated successfully, but these errors were encountered: