Versions in this module Expand all Collapse all v0 v0.0.1 Nov 20, 2023 Changes in this version + func SignificantChange(diff string, isSignificant func(*FileDiff, *ContentChange) (bool, string)) (bool, error, string) + type BinaryDeltaType string + const BinaryDeltaTypeDelta + const BinaryDeltaTypeLiteral + type BinaryPatch struct + Content string + Count int + Type BinaryDeltaType + type ChangeList []ContentChange + func (changes *ChangeList) IsSignificant() bool + type ContentChange struct + From string + To string + Type ContentChangeType + type ContentChangeType string + const ContentChangeTypeAdd + const ContentChangeTypeDelete + const ContentChangeTypeModify + const ContentChangeTypeNOOP + type Diff struct + FileDiff []FileDiff + func Parse(diff string) (Diff, []error) + type FileDiff struct + BinaryHunk []BinaryPatch + FromFile string + Hunks []Hunk + IsBinary bool + NewMode string + ToFile string + Type FileDiffType + type FileDiffType string + const FileDiffTypeAdded + const FileDiffTypeDeleted + const FileDiffTypeModified + type Hunk struct + Change ChangeList + CountNew int + CountOld int + StartLineNumberNew int + StartLineNumberOld int + func NewHunk(line string) (Hunk, error) + type ParserMode int