logoalt Hacker News

bravesoul2last Wednesday at 8:06 AM1 replyview on HN

If disk space is no issue, a good difference format is just the entire original file and the entire new file.

If an editor was involved and you want better mergability you could include the original file and the sequence of CRDT ops.


Replies

SuperNinKenDolast Wednesday at 8:18 AM

Isn't that technically not the case if you wanted to apply a specific patch without every other change that's been made to the same file.

The more changes, the more likely it is for a patch to fail, but in principle it seems like cherry-picking and applying a change is a valid use of a diff.

show 2 replies