Skip to main content

Module diff

Module diff 

Source
Expand description

Function-level AST diff for bugbot

Wraps the existing DiffArgs::run_to_report() infrastructure to compare a baseline file (from git) against the current working-tree version. Exposes convenience helpers to categorize changes by type (inserted, updated, deleted functions).

Functionsยง

all_function_changes
Filter to all function-like changes regardless of change type.
deleted_functions
Filter to only deleted functions (functions removed in the current file).
diff_functions
Compute function-level AST diff between a baseline file and the current file.
diff_functions_raw
Compute function-level AST diff without the semantic-only filter.
inserted_functions
Filter to only inserted functions (new functions added in the current file).
renamed_functions
Filter to only renamed functions (same body, different name).
updated_functions
Filter to only updated functions (modified function bodies).