Skip to main content

Module diff

Module diff 

Source
Expand description

Diff command - AST-aware structural diff

Compares two source files at the AST level, detecting:

  • Insert: new function/class/method
  • Delete: removed function/class/method
  • Update: modified body
  • Move: same content, different location
  • Rename: same body, different name

§Example

tldr diff old.py new.py
tldr diff old.py new.py --semantic-only
tldr diff old.py new.py --format text

Structs§

DiffArgs
AST-aware structural diff between two files

Functions§

run_class_diff
Run a class-level diff between two files.