Skip to main content

Module filter

Module filter 

Source
Expand description

Smart Diff Filter — excludes machine-generated files from AI diff input.

Structs§

ExcludedFile
A file that will be excluded from the diff.
FilterResult
Result of filtering — carries excluded files AND whether all staged files were excluded.

Enums§

ExclusionReason
Why a file was excluded from the diff.
FilterError
Errors from filter operations.
FilterMode
Domain type for filter options (Boolean Blindness prevention).

Functions§

build_git_exclude_args
Converts excluded files to git :(exclude)path args. Correct git pathspec syntax: :(exclude)path — parenthesis closes BEFORE the path.
filter_staged_files
Runs the numstat heuristic pipeline and returns files to exclude.