-
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
Filenames not added to indexes #82
Comments
Also, since |
I've done a pull-request that seems to fix this, just by adding { index: 'libstdc++-v3/configure.host',
oldFileName: 'a/libstdc++-v3/configure.host',
oldHeader: 'Fri Mar 29 16:38:52 2013 -0400',
newFileName: 'b/libstdc++-v3/configure.host',
newHeader: 'Fri Mar 29 16:41:10 2013 -0400',
hunks:
[ { oldStart: 264,
oldLines: 6,
newStart: 264,
newLines: 13,
lines: [Object] },
{ oldStart: 272,
oldLines: 6,
newStart: 279,
newLines: 9,
lines: [Object] } ] } Much better, isn't it? :-D Only thing are the |
Closing in favor of #83 |
👍 |
When using
applyPatches()
with https://raw.githubusercontent.com/GregorR/musl-cross/master/patches/gcc-4.7.3-musl.diff I get the next result onloadFile
callback:As you can see, the file names on the patch are not added anywhere, and in fact the whole patch is considered to be for only one (anonimous) index. I think the problem is related to be using Index: as identifier of each one of the files, while each file is being separated with a
diff
line:I believe it would be as simple as allowing to use not only
Index:
as identifier but alsodiff
too.Also, I think that instead of ignoring the headers when no index is found, it would be good to add them although they are partial, or if it's done this way to consume the patch lines, maybe the var
i
would be increased directly without callingparseFileHeader()
with an empty object...The text was updated successfully, but these errors were encountered: