For an array, it would work the same way - effectively acting as multiple ADD_ARRAY_ELEMENT to the end of the array. Functionally, it is identical to using IMPORT on a file holding the contents - removing the need to create a second file holding data to patch in, and also removing the need for multiple SET_KEY and ADD_ARRAY_ELEMENT patchsteps.
As for the version display, it simply just adds a 'v' to the beginning of the version string. Probably not the more important part of this PR, but it seemed like a waste to do a whole PR over just that.
MERGE_CONTENT would simply allow one to bulk add/modify many keys or array elements all at once.
To give an example, with an initial state of:
and a patchstep of:
It would modify the state to be:
For an array, it would work the same way - effectively acting as multiple
ADD_ARRAY_ELEMENT
to the end of the array. Functionally, it is identical to usingIMPORT
on a file holding the contents - removing the need to create a second file holding data to patch in, and also removing the need for multipleSET_KEY
andADD_ARRAY_ELEMENT
patchsteps.As for the version display, it simply just adds a 'v' to the beginning of the version string. Probably not the more important part of this PR, but it seemed like a waste to do a whole PR over just that.