Git patch file parser have some issues with multiple change for same file
Closed this issue · 3 comments
dotansimha commented
Hi,
Try to create a diff patch file and use it.
For files with one or more changes in the same "area" of the file the parser works great.
But if I have two changes for the file, and one of them is in the begining and the other is in the end of the file, and the file is NOT small - The diff box shows unwanted results.
Any idea?
Thanks
stubailo commented
Finished first part of fix - the parser will now return an array of sections in the case where the patch has multiple parts. Now to update the viewer accordingly.
stubailo commented
OK, now updated the patch viewer component to work with it. Let me know what you think - we can fiddle with the wording/styling a bit.
If you update the package it should just work automatically.
dotansimha commented
Works great! Thanks !!