aboutsummaryrefslogtreecommitdiff
path: root/Main.hs
diff options
context:
space:
mode:
authorMirek Kratochvil <miroslav.kratochvil@uni.lu>2025-07-17 15:53:30 +0200
committerMirek Kratochvil <miroslav.kratochvil@uni.lu>2025-07-17 15:53:30 +0200
commit554429b9b1f39b09cfef8dc3654f806655547a2a (patch)
tree15e2a88630535365f124372ebb4a623c460426b0 /Main.hs
parent44bd3e8c149f923aa82da77da03db3be13bca83e (diff)
downloadwerge-554429b9b1f39b09cfef8dc3654f806655547a2a.tar.gz
werge-554429b9b1f39b09cfef8dc3654f806655547a2a.tar.bz2
expand README
Diffstat (limited to 'Main.hs')
-rw-r--r--Main.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Main.hs b/Main.hs
index d86a6cb..c3e18c9 100644
--- a/Main.hs
+++ b/Main.hs
@@ -156,6 +156,11 @@ isKeepTok _ = False
isDelTok (Del, _) = True
isDelTok _ = False
+-- TODO: Diff output is not necessarily deterministic; we could make the chunk
+-- sequences more unique by rolling them to front (or back), possibly enabling
+-- more conflict resolution and preventing mismerges.
+--
+-- Example: " a " can be made out of " {+a +}" or "{+ a+} "
chunks :: [(Op, String)] -> [Merged]
chunks [] = []
chunks xs@((Keep, _):_) =