Handles parsing diff for use by the interactive index editor.
Returns the hunks for a particular offset.
Processes the diffs and returns a selected subset from that diff.
Returns the list of diffs.
Returns the hunks for a selected range.
Returns the offsets.
Parses a diff and extracts headers, offsets, hunks, etc.
Processes a diff selection and applies changes to git.
Sets the diff selection to be the hunk at a particular offset.
Sets the diff selection to be a range of hunks.
Returns the line spans of each hunk.
Writes a new diff corresponding to the user’s selection.