uSync-Legacy
uSync-Legacy copied to clipboard
better diffing json prevalue value based datatypes when using source control systems
Wraps all PreValue values into CData section on save and unwraps on load of file
- added CData PreValue value wrapper just before saving to file
- added CData PreValue value unwrapper just after loading file
Thanks for this,
I think i will move this into uSync.Core so that the serializers can do the wrapping/pre-wrapping then the innards of the xml stay in core, and it will work for anything else calling the api.
Thanks,
I also created a pull request with the same wrapper/unwrapper in the other usync repo. Perhaps you can take a look there as well.
I added this at the file load and save places, because of your import/update mechanism; this was, as far as I could quickly see, the only fail save (and backwards compatible) way to do it.