Expand description
Smart Diff Filter — excludes machine-generated files from AI diff input.
Structs§
- Excluded
File - A file that will be excluded from the diff.
- Filter
Result - Result of filtering — carries excluded files AND whether all staged files were excluded.
Enums§
- Exclusion
Reason - Why a file was excluded from the diff.
- Filter
Error - Errors from filter operations.
- Filter
Mode - 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.