GitRefBaseline
Produces the baseline schema for a git ref by recomputing it from source — the heart of the git-ref-live model (design §5). There is no committed baseline to go stale or be overwritten; the target ref's source is checked out into a throwaway worktree and the schema extracted there, so the staleness gap is structurally impossible.
Fail-closed: an unresolvable ref throws (via GitCommands) rather than letting the gate pass. A content-addressed SnapshotCache avoids recomputing an unchanged ref.
Functions
Link copied to clipboard
Resolves ref to its full commit SHA; throws if the ref is unknown.
Link copied to clipboard
fun snapshotAt(ref: String, parentDir: File, cache: SnapshotCache, extract: (File) -> String): String