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 ¶
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 Config ¶
type Config struct {
Path string
Base string
Cache *sourcecache.Cache
Network *source.Network
GitTransports sourcegit.Transports
}
Config requires Cache and Network to outlive all returned lazy readers.
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 ¶
AutoResolve requires that the checkout remain stable until all readers have joined. An error may return diagnostic-only inputs with no usable content.