files: check offsets and split copy's with same name #15
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently the file parsing does not check the offset, this means that is does not spot missed data and it will concatenate multiple copys into single file. This uses the offset to start a new file. Currently it just appends
_Vxto the file name for copies. This is a bit clunky but is a none breaking change. In the future we might want to return a array for each file so the tool can decide how to present the multiple copy's (I was thinking of a drop down selection).Currently we get this:

With this patch:

Using
@SYS/uarts.txtas a example. We currently get:With the patch we get:
@SYS/uarts.txt:@SYS/uarts_V2.txt:@SYS/uarts_V3.txt:This does do a file compare, so you will only get a new version if it is different.