Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork209
Closed
Description
When generating a unified diff with context, I would like to be able to do a fuzzy apply of that patch. Does your library support this?
For example, take the following unified diff with context 3:
--- original+++ modified@@ -2,6 +2,9 @@ 2 3 4+a+b+c 5 6 7And my file looks like the following (exactly the original but with three lines added to the top):
xyz12345678Using the linuxpatch tool I am still able to apply this patch:
$ patch -o - neworig udiff.patchpatching file - (read from neworig)Hunk #1 succeeded at 5 with fuzz 1 (offset 3 lines).When usingDiffUtils.patch of your library I get an error (because the line numbers no longer match):
Incorrect Chunk: the chunk content doesn't match the targetMaybe there is a configuration option to enable fuzzy patching?
Metadata
Metadata
Assignees
Labels
No labels