Skip to content

interdiff does not reverse a patch correctly #18

@teo1978

Description

@teo1978

According to man interdiff:

To reverse a patch, use /dev/null for diff2.

(that is, interdiff file.patch /dev/null is supposed to reverse the patch in file.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:

interdiff file.patch /dev/null > 550reversed.patch

and then to apply the output supposed-to-be reversed patch to file2.php. Some parts were rejected.

550.patch.txt
550reversed.patch.txt

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions