Artifact 2afd2aa9f9def684c947ec652816d119176ffa23f5009c9cfbcde8f460ccf7c4:
- File
internal/annotate/annotate.go
-
2026-10-25 23:10:47
— part of check-in
[d367012009]
on branch feat/read-blob-content-cache
— feat: read an artifact by hash and cache content on Repo
Repo.ReadBlob expands one artifact by its full hash after the availability check ReadFile applies, and names an unknown hash with ErrArtifactNotFound.
Repo.SetContentCache attaches a byte-bounded content.Cache that ReadFile, ReadFileAt, ReadBlob, ListFiles, Diff and Annotate share; check-in parses are kept in its derived memo, so reads at one check-in parse the manifest once. Default off. A read that finds the DB's finished-write count moved swaps in an empty cache, so a purged, compacted or elided artifact, and a rid SQLite reuses after a purge, is never served from it. Writes by another process are not seen; the method's doc says so.
Tracked in #492. (user: [email protected], size: 10663) [annotate] [blame] [check-ins using]
-
2026-10-25 23:28:49
— part of check-in
[5e882bf1f1]
on branch main
— Merge pull request #496 from danmestas/feat/read-blob-content-cache
feat: read an artifact by hash and cache content on Repo (user: [email protected], size: 10663) [annotate] [blame] [check-ins using]
-
2026-10-25 23:10:47
— part of check-in
[d367012009]
on branch feat/read-blob-content-cache
— feat: read an artifact by hash and cache content on Repo