entrydiff

package
v0.54.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
const MaxCompanionLines = 10

MaxCompanionLines bounds the lines one companion file gains.

Variables

This section is empty.

Functions

func Added

func Added(cl config.Class, d forge.Diff) (bool, string)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL