Expand description
Which lines of which files to analyse (--since, --lines).
Structs§
- Hunk
- One hunk of
git diff -U0: where the new lines are, and the lines that were there. - Scope
- Line ranges per file. Paths are relative to the workspace root, with
/separators.
Functions§
- hunks
- The hunks of the files that are still there. The lines of a hunk are counted as its
header says, so a removed line that starts with
--is not taken for a file header. - line_of
- 1-based line of the byte at
offset. - range_
of - Where the new lines of a hunk are in
text, as a byte range: empty, at the place the old lines were, when the hunk has no new lines. - undo
textwith the hunks undone: the old lines where the new ones are. The hunks are of this text and do not overlap.Nonewhen one of them does not fit the text.