uSync-Legacy icon indicating copy to clipboard operation
uSync-Legacy copied to clipboard

better diffing json prevalue value based datatypes when using source control systems

Open ghost opened this issue 10 years ago • 2 comments

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

ghost avatar Mar 07 '16 12:03 ghost

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.

KevinJump avatar Mar 07 '16 12:03 KevinJump

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.

ghost avatar Mar 07 '16 13:03 ghost