Skip to main content

Module context

Module context 

Source

Structs§

CommitContext
Full context for commit message generation.
FileContext
File content with truncation metadata.

Enums§

TruncationMode
Truncation strategy applied to a file.

Functions§

detect_sensitive_content
Detect if the diff or changed files contain sensitive content.
detect_sensitive_findings
Return structured findings for sensitive content matches.
extract_changed_file_paths
Extract changed file paths from a unified diff.
gather_context
Gather full context for commit message generation.
get_file_contents
Read file contents for changed files with a total character budget.
should_skip
Check if a file should be skipped for context reading.