package
1.24.0-dev
Repository: https://github.com/go-gitea/gitea.git
Documentation: pkg.go.dev

# Functions

CommentAsDiff returns c.Patch as *Diff.
CommentMustAsDiff executes AsDiff and logs the error instead of returning.
CreateCsvDiff creates a tabular diff based on two CSV readers.
DiffInlineWithHighlightCode makes a DiffInline with code highlight and hidden unicode characters escaped.
DiffInlineWithUnicodeEscape makes a DiffInline with hidden unicode characters escaped.
GetDiff builds a Diff between two commits of a repository.
GetPullDiffStats.
GetWhitespaceFlag returns git diff flag for treating whitespaces.
ParsePatch builds a Diff object from a io.Reader and some parameters.
SyncAndGetUserSpecificDiff is like GetDiff, except that user specific data such as which files the given user has already viewed on the given PR will also be set Additionally, the database asynchronously is updated if files have changed since the last review.

# Constants

BlobExcerptChunkSize represent max lines of excerpt.
DiffFileType possible values.
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.
TableDiffCellType possible values.
TableDiffCellType possible values.
TableDiffCellType possible values.
TableDiffCellType possible values.
TableDiffCellType possible values.
TableDiffCellType possible values.

# Variables

ErrorUndefinedCell is for when a row, column coordinates do not exist in the CSV.

# Structs

Diff represents a difference between two git trees.
DiffFile represents a file diff.
DiffInline is a struct that has a content and escape status.
DiffLine represents a line difference in a DiffSection.
DiffLineSectionInfo represents diff line section meta data.
DiffOptions represents the options for a DiffRange.
DiffSection represents a section of a DiffFile.
TableDiffCell represents a cell of a TableDiffRow.
TableDiffRow represents a row of a TableDiffSection.
TableDiffSection represents a section of a DiffFile.

# Type aliases

DiffFileType represents the type of DiffFile.
DiffLineExpandDirection represents the DiffLineSection expand direction.
DiffLineType represents the type of DiffLine.
TableDiffCellType represents the type of a TableDiffCell.