Expand description
Structured unified-diff parser: one parse feeds the JSON API’s
files[] -> hunks[] -> lines[] shape (and, later, the compare and pull
request views).
Follows the JSS forge parsePatch contract by name: each file is
{name, binary, adds, dels, hunks}; each hunk {header, lines}; each line
{type: add|del|ctx|meta, oldLine, newLine, text}.
Structs§
Enums§
- Line
Kind - Kind of a diff line.
Functions§
- parse_
patch - Parse a
git show --patch/git diffunified patch.