Re:Version Control Before Git with CVS
by WorldMaker on Monday July 09, 2018 @11:08AM
(#17490740)
My experiments showed that you can get good character-based diffs from using a syntax highlighting tokenizer. [1] It was faster than a pure character diff algorithm, but the resulting diffs/patches are interoperable, and provided quite reasonably semantic diffs on the examples I tested. Most tokenizers are great too because they tend to operate very well with work-in-progress code or broken/edge-case code (because they are the same sorts of tools we use in our editors).
I've not seen someone actually use it for source control, but the core idea is simple enough for the taking.
I've not seen someone actually use it for source control, but the core idea is simple enough for the taking.
[1] https://github.com/WorldMaker/tokdiff