I want to implement a function (diff3 a o b) where o is common ancestor of a and b. The straightforward solution is combining editscripts of two diffs: (patch o (combine (diff o a) (diff o b))). But I stuck with detecting conflicts when concurrent updates happens at same place in a and b.
Is there any known solutions or algorithms of iterating over those editscripts and finding conflicting nodes?
I want to implement a function
(diff3 a o b)whereois common ancestor ofaandb. The straightforward solution is combining editscripts of two diffs:(patch o (combine (diff o a) (diff o b))). But I stuck with detecting conflicts when concurrent updates happens at same place inaandb.Is there any known solutions or algorithms of iterating over those editscripts and finding conflicting nodes?