Documentation
¶
Overview ¶
Package diffformat produces the simple "before vs after" diff text CodeDB indexes for diff search and re-derives at search-read time for snippets (ADR-018 phase 2 Option A). The format is intentionally minimal — not a unified diff — and MUST stay byte-stable across producers: the indexer writes it into the Bleve diff index for tokenization; the search assemble path re-computes it from blobs for the snippet shown to agents.
Bump the diff mapping version in store.bleveMappingVersion("diff") and force a reindex if you change the format here — drift would split-brain the inverted index against the regenerated snippet.
Index ¶
Constants ¶
const MaxLines = 100
MaxLines caps each of the "before" and "after" sides at 100 lines, matching the indexer's historical cap.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.