Class Diff3

java.lang.Object
io.github.jbastgen.stemma.app.git.Diff3

public final class Diff3 extends Object
Three-way merge of text, line by line: the common ancestor (base) against "ours" and "theirs". The result is a list of chunks: stable lines, changes that only one side (or both, identically) made and that merge cleanly, and conflicts where both sides changed the same lines differently.

Lines are compared with their line terminators, so a changed line ending or a missing final newline is a change like any other and nothing is lost when the pieces are put together again.