Skip to main content

run_diff

Function run_diff 

Source
pub fn run_diff(
    cli: &Cli,
    base_ref: &str,
    target_ref: &str,
    path: Option<&str>,
    max_results: usize,
    kinds: &[String],
    change_types: &[String],
) -> Result<()>
Expand description

Run the diff command.

Compares symbols between two git refs by:

  1. Creating temporary git worktrees
  2. Building CodeGraphs for each ref
  3. Comparing graphs to detect changes
  4. Formatting and outputting results

ยงErrors

Returns error if:

  • Not a git repository
  • Git refs are invalid
  • Graph building fails
  • Output formatting fails