baseline

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: AGPL-3.0 Imports: 42 Imported by: 0

Documentation

Overview

Package baseline resolves one base revision and admits lazy input views. Metadata and missing changed bodies use the shared cache owner, while unchanged baseline bodies reuse admitted current bytes. The checkout and its Git object store are read-only throughout selection and rendering.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdmitDirectory added in v0.7.3

func AdmitDirectory(
	ctx context.Context,
	path, root string,
	scope manifest.WorkScope,
) (
	_ *store.SourceArtifact,
	_ string,
	resultErr error,
)

AdmitDirectory resolves disk coordinates before constructing a direct reader. Synthetic labels belong to already admitted inputs and MUST bypass this path.

Types

type Result

type Result struct {
	Source       *store.SourceArtifact
	BaseInput    *store.SourceArtifact
	ScanPath     string
	BaseScanPath string
	Changes      *change.Set
	SelfURLs     []string
}

Result retains admitted inputs and one selection for both render sides.

func AutoResolve

func AutoResolve(ctx context.Context, path, base string, owner *sourcecache.Cache) (*Result, error)

AutoResolve resolves the base once and admits lazy readers owned by owner. The checkout MUST remain stable until all readers have joined. An error may return diagnostic-only inputs with no usable content.

func ResolvePaths added in v0.7.3

func ResolvePaths(ctx context.Context, current, original string) (*Result, error)

ResolvePaths admits both inputs and retains their canonical scan paths. Only an absent original repository selects the current repository's identity. The original path must be non-empty.

Jump to

Keyboard shortcuts

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