I am trying to apply a patch on Linux using patch -p1 < name_of_a_patch.patch
I get this line saying
patching file my_application.c
Hunk #1 succeeded at 96 (offset -27 lines)
And I see a file my_application.c.org
What does this mean?
I am trying to apply a patch on Linux using patch -p1 < name_of_a_patch.patch
I get this line saying
patching file my_application.c
Hunk #1 succeeded at 96 (offset -27 lines)
And I see a file my_application.c.org
What does this mean?
If the file to be patched has changed slightly since the patch was created, but the specific section remained the same, patch
can detect that and apply the patch appropriately.
The message you see means the file was successfully patched, but the first section that was patched was 27 lines earlier than was originally specified.
patch
is smart enough to give me an error if there are any issues.
Commented
Aug 6, 2015 at 2:39