Documentation ¶
Index ¶
Constants ¶
View Source
const ( LineOperationModify = LineOperation('M') LineOperationAdd = LineOperation('A') LineOperationDelete = LineOperation('D') )
View Source
const ( StatusAdd = StatusType('A') StatusCopy = StatusType('C') StatusDelete = StatusType('D') StatusModify = StatusType('M') StatusRename = StatusType('R') StatusChangeType = StatusType('T') StatusUnmerged = StatusType('U') StatusUnknown = StatusType('X') )
Variables ¶
View Source
var ( ErrMalformedDiff = errors.New("malformed diff") ErrUnknownStatusLetter = fmt.Errorf("%w: invalid status letter", ErrMalformedDiff) )
Functions ¶
This section is empty.
Types ¶
type Line ¶
type Line struct { Operation LineOperation Src LineState Dst LineState }
type LineOperation ¶
type LineOperation rune
type Status ¶
type Status struct { Type StatusType Score *int }
type StatusType ¶
type StatusType rune
Source Files ¶
Click to show internal directories.
Click to hide internal directories.