Documentation
¶
Index ¶
- Constants
- Variables
- func ApplyFile(pristine, patchData []byte) ([]byte, error)
- func ApplyFileWithConflicts(pristine, patchData []byte) ([]byte, error)
- func ApplyPatchset(tree map[string][]byte, patchData []byte) (map[string][]byte, error)
- func SignificantChange(diff string, isSignificant func(*FileDiff, *ContentChange) (bool, string)) (significant bool, msg string, err error)
- type ContentChange
- type ContentChangeType
- type FileDiff
- type FileDiffType
Constants ¶
View Source
const ( ContentChangeTypeAdd = contentChangeTypeAdd ContentChangeTypeDelete = contentChangeTypeDelete ContentChangeTypeModify = contentChangeTypeModify ContentChangeTypeNOOP = contentChangeTypeNOOP FileDiffTypeAdded = fileDiffTypeAdded FileDiffTypeDeleted = fileDiffTypeDeleted FileDiffTypeModified = fileDiffTypeModified )
Variables ¶
View Source
var ErrPatchConflict = errors.New("patch conflict")
Functions ¶
func ApplyFileWithConflicts ¶ added in v0.1.0
func ApplyPatchset ¶ added in v0.1.0
func SignificantChange ¶
Types ¶
type ContentChange ¶
type ContentChange = contentChange
type ContentChangeType ¶
type ContentChangeType = contentChangeType
type FileDiffType ¶
type FileDiffType = fileDiffType
Click to show internal directories.
Click to hide internal directories.