You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: pint.md
+6
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,12 @@ If you would like Pint to simply inspect your code for style errors without actu
55
55
./vendor/bin/pint --test
56
56
```
57
57
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
+
58
64
If you would like Pint to only modify the files that have uncommitted changes according to Git, you may use the `--dirty` option:
0 commit comments