Skip to content

Add diff based execution#2347

Merged
TomasVotruba merged 3 commits intorectorphp:masterfrom
EmanueleMinotto:diff-only-execution
Nov 23, 2019
Merged

Add diff based execution#2347
TomasVotruba merged 3 commits intorectorphp:masterfrom
EmanueleMinotto:diff-only-execution

Conversation

@EmanueleMinotto
Copy link
Copy Markdown
Contributor

This pull request adds the option --must-match-git-diff to the process command, this is useful for both local and CI execution.

It should be compatible with the rest of the configuration because creates an intersection with the git diff output.

@TomasVotruba
Copy link
Copy Markdown
Member

Rebase on master

@EmanueleMinotto EmanueleMinotto force-pushed the diff-only-execution branch 2 times, most recently from 5183a45 to d677ae4 Compare November 23, 2019 18:29
@EmanueleMinotto
Copy link
Copy Markdown
Contributor Author

@TomasVotruba done

@TomasVotruba
Copy link
Copy Markdown
Member

Thank, can you update README with this feature in 2-3 lines?

Right above: https://github.com/rectorphp/rector#3-steps-to-create-your-own-rector

Comment thread README.md

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
> ```bash
> vendor/bin/rector process src --must-match-git-diff
> ```

Nice 👍

One last thing. I always copy-paste commands from READMEs, as want to try them asap. This should do

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll handle that locally, let's merge it

Comment thread README.md

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll handle that locally, let's merge it

@TomasVotruba TomasVotruba merged commit 73dff9b into rectorphp:master Nov 23, 2019
TomasVotruba added a commit that referenced this pull request May 22, 2022
rectorphp/rector-src@8fbc658 [Core][Naming] Move collecting param names method to FunctionLikeManipulator (#2347)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants