Class Diff3
java.lang.Object
io.github.jbastgen.stemma.app.git.Diff3
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA change that merges without conflict:linesare the merged result.static interfaceA piece of the merged file.static final recordBoth sides changed the same lines in different ways.static enumWho made an automatically merged change.static final recordLines all three versions have. -
Method Summary