Skip to content

Commit 5876c87

Browse files
[11.x] Adds documentation for pint --diff=[DIFF] (#10100)
* adds documentation for pint --diff * Update pint.md --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent 6b78d37 commit 5876c87

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pint.md

+6
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ If you would like Pint to simply inspect your code for style errors without actu
5555
./vendor/bin/pint --test
5656
```
5757

58+
If you would like Pint to only modify the files that differ from the provided branch according to Git, you may use the `--diff=[branch]` option. This can be effectively used in your CI environment (like GitHub actions) to save time by only inspecting new or modified files:
59+
60+
```shell
61+
./vendor/bin/pint --diff=main
62+
```
63+
5864
If you would like Pint to only modify the files that have uncommitted changes according to Git, you may use the `--dirty` option:
5965

6066
```shell

0 commit comments

Comments
 (0)