Calculating which modified lines should be displayed together.
A hunk represents a series of modified lines that are displayed together.
The maximum number of lines that may occur between changed lines in a hunk.
Given a slice of line pairs that are ordered as far as possible, but may refer to earlier lines, return line pairs that are monotonically increasing. If an earlier line occurs after a later line, replace that line with None.
Split lines into hunks.