Documentation
¶
Overview ¶
Package context provides git and code context enrichment for diffs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangedFiles ¶
ChangedFiles returns the list of files changed relative to a base.
func FormatContext ¶
func FormatContext(contexts []FileContext) string
FormatContext renders file contexts as text suitable for LLM prompt injection.
Types ¶
type FileContext ¶
FileContext holds contextual information about a changed file.
func Enrich ¶
func Enrich(files []string) []FileContext
Enrich gathers git context for the given file paths. Returns context for each file, best-effort (non-fatal on failures).
Click to show internal directories.
Click to hide internal directories.