Skip to main content

revet diff

Show findings only on changed lines vs a branch or commit. Perfect for focused PR reviews.

revet diff main               # findings on lines changed vs main
revet diff feature/auth # vs a specific branch
revet diff HEAD~1 # vs previous commit
revet diff main --fix # with auto-fix
revet diff main --format json # machine-readable output

How it differs from revet review

revet review (diff mode) shows all findings in any file that has changed. revet diff goes further — it filters to only the exact lines that were added or modified.

  • New files: all findings shown
  • Modified files: only findings on changed lines
  • Deleted files: excluded

Use revet diff in PR review workflows where you only want to be notified about findings introduced by the current change.

Flags

FlagDescription
--fixApply automatic fixes for fixable findings
--formatOutput format: terminal, json, sarif, github
--fail-onExit non-zero threshold: error, warning, info, never
--moduleRun only specific modules (comma-separated)
--aiEnable LLM reasoning — see AI Reasoning
--max-cost <usd>Cap AI spend per run in USD