Skip to main content

Module diff

Module diff 

Source
Expand description

Semantic diff between two git refs at the symbol level.

Instead of a line diff, this compares the extracted symbol graphs of two git tree-states and classifies each change as Added / Removed / Modified / SignatureChanged. The caller supplies a project root and two git refs (e.g. “HEAD~1”, “main”); the module checks out each ref into a temp worktree, indexes it with the current language registry, and returns a structured SymbolDiff.

Structs§

SymbolChange
A single symbol-level change.
SymbolDiff
Full semantic diff result.

Enums§

ChangeKind
How a symbol changed between two refs.

Functions§

format_diff
semantic_diff
Compute a symbol-level diff between old_ref and new_ref in project_root.