Class Diffs
java.lang.Object
io.github.jbastgen.stemma.app.model.Diffs
Parses unified diffs and produces the sample diffs shown by the prototype UI.
-
Method Summary
Modifier and TypeMethodDescriptionstatic intHow many lines were added.The diff lines of a file of the demo data, generated once and kept.Reads a unified diff (hunks only) into lines with old and new line numbers; a hunk header is a line of its own.static intHow many lines were removed.
-
Method Details
-
parse
Reads a unified diff (hunks only) into lines with old and new line numbers; a hunk header is a line of its own. -
forFile
The diff lines of a file of the demo data, generated once and kept. -
added
How many lines were added. -
removed
How many lines were removed.
-