# Functions
CommentAsDiff returns c.Patch as *Diff.
CommentMustAsDiff executes AsDiff and logs the error instead of returning.
GetDiffCommit builds a Diff representing the given commitID.
GetDiffRange builds a Diff between two commits of a repository.
GetDiffRangeWithWhitespaceBehavior builds a Diff between two commits of a repository.
ParsePatch builds a Diff object from a io.Reader and some parameters.
# Constants
BlobExceprtChunkSize represent max lines of excerpt.
DiffFileType possible values.
DiffFileType possible values.
DiffFileType possible values.
DiffFileType possible values.
DiffLineType possible values.
DiffLineType possible values.
DiffLineExpandDirection possible values.
DiffLineExpandDirection possible values.
DiffLineExpandDirection possible values.
DiffLineExpandDirection possible values.
DiffLineExpandDirection possible values.
DiffLineType possible values.
DiffLineType possible values.
# Structs
Diff represents a difference between two git trees.
DiffFile represents a file diff.
DiffLine represents a line difference in a DiffSection.
DiffLineSectionInfo represents diff line section meta data.
DiffSection represents a section of a DiffFile.
# Type aliases
DiffFileType represents the type of a DiffFile.
DiffLineExpandDirection represents the DiffLineSection expand direction.
DiffLineType represents the type of a DiffLine.