mix ex_ast.diff (ExAST v0.11.0)

Copy Markdown View Source

Computes a syntax-aware diff between two Elixir files.

Usage

mix ex_ast.diff path/to/old.ex path/to/new.ex

Options

  • --json — print edits as Elixir terms
  • --no-moves — disable move detection
  • --no-color — disable colored output
  • --summary — print only summary lines

Examples

mix ex_ast.diff lib/a.ex lib/b.ex
mix ex_ast.diff --summary lib/a.ex lib/b.ex
mix ex_ast.diff --no-moves lib/a.ex lib/b.ex
mix ex_ast.diff --no-color lib/a.ex lib/b.ex