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
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.