meteor/tutorial-tools

Git patch file parser have some issues with multiple change for same file

Closed this issue · 3 comments

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.

Example:
screen shot 2015-08-18 at 20 26 48

Any idea?

Thanks

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.

meteor/git-patch-parser@fc23ef6

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.

Works great! Thanks !!