-
Notifications
You must be signed in to change notification settings - Fork 510
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
applyPatches don't use offsets #84
Comments
Found and fixed!!! :-D |
Have you tried different |
No, I didn't, but according to the source code, seems more related about allowing lines on the context to not be exactly as expected, for example to be able to aply a patch on top of some commits after of the one where it was created. |
I'll close this since it got already merged. |
(Related to #82)
While processing https://raw.githubusercontent.com/GregorR/musl-cross/master/patches/gcc-4.7.3-musl.diff with my pull-request I get some index that couldn't be applied, getting
patched()
callback content equals tofalse
. After processing the same file withpatch --verbose -Np1
, it show that this entries are correctly applied but with an offset:Seems
applyPatches()
should try to find the place where the context fit and apply that offset to the patched content, isn't it?P.D.: don't know if it's related, but at the end of processing the patch file, I get one call to
loadFile()
withundefined
as index, but ignoring it don't make problems, so maybe it's an extra call that should not be there...The text was updated successfully, but these errors were encountered: