Documentation
¶
Overview ¶
Package entrydiff decides whether a diff adds one catalog entry and only appends to the catalog's companion files (RunLore KB, the KB class), from the diff alone: allowedFiles bound where the entry goes, companionFiles what else may grow, the holdout checks what it says.
Index ¶
Constants ¶
const MaxCompanionLines = 10
MaxCompanionLines bounds the lines one companion file gains.
Variables ¶
This section is empty.
Functions ¶
func Added ¶
Added reports whether d adds exactly one file matching cl.AllowedFiles (and cl.NarrowedFiles when set), absent on the base (d.Base[p] == "": Diff stores an added file's base as an empty value) and non-empty valid UTF-8 on the head, and changes every other file only by appending lines: modified, matching cl.CompanionFiles, 0 deleted, 1..MaxCompanionLines added, the base's lines kept in order. No control character but tab and newline, and no Unicode format character (zero-width, bidi), in the entry or an added line. The reason when it does not.
Types ¶
This section is empty.