carryforward

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package carryforward determines which files are eligible for historical lookback during attribution. It is a pure domain package with no infrastructure dependencies.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IdentifyCreatedCandidates added in v0.5.5

func IdentifyCreatedCandidates(filesCreated []string, manifestFiles []ManifestEntry) map[string]bool

IdentifyCreatedCandidates returns created paths that were already present in the previous checkpoint manifest. That means the commit is adding a file the checkpoint had already seen on disk, so older events may apply.

func IdentifyModifiedCandidates added in v0.5.5

func IdentifyModifiedCandidates(filesEdited []string) map[string]bool

IdentifyModifiedCandidates returns modified paths eligible for historical lookback. Modified files need no manifest gate; the scorer later requires historical lines to match the current diff before crediting them.

Types

type ManifestEntry

type ManifestEntry struct {
	Path string
}

ManifestEntry holds the path of a file present in a checkpoint manifest.

Jump to

Keyboard shortcuts

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