Documentation
¶
Overview ¶
Package diff parses unified diff text to build line mappings.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LineType ¶
type LineType int
LineType describes what happened to a line.
func FindNewLine ¶
FindNewLine looks up a new-side line number in the parsed lines and returns the corresponding old line number and the line type. Returns an error if the line is not found in the diff.
Click to show internal directories.
Click to hide internal directories.