Skip to content

Commit

Permalink
[11.x] Adds documentation for pint --diff=[DIFF] (#10100)
Browse files Browse the repository at this point in the history
* adds documentation for pint --diff

* Update pint.md

---------

Co-authored-by: Taylor Otwell <[email protected]>
  • Loading branch information
ProjektGopher and taylorotwell authored Jan 14, 2025
1 parent 6b78d37 commit 5876c87
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pint.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ If you would like Pint to simply inspect your code for style errors without actu
./vendor/bin/pint --test
```

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:

```shell
./vendor/bin/pint --diff=main
```

If you would like Pint to only modify the files that have uncommitted changes according to Git, you may use the `--dirty` option:

```shell
Expand Down

0 comments on commit 5876c87

Please sign in to comment.