rector/docs/how_to_run_rector_on_changed_files_only.md
2020-10-29 10:44:07 +01:00

395 B

How To Run Rector on Changed Files Only

Execution can be limited to changed files using the process option --match-git-diff. This option will filter the files included by the configuration, creating an intersection with the files listed in git diff.

vendor/bin/rector process src --match-git-diff

This option is useful in CI with pull-requests that only change few files.