Skip to content

Update pint.md #610

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 16, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion pint.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
git: ecae9ec0d8b7dd60bae30101d80cb26e21ee94bb
git: 5876c879aca23901bec0d19737d8a09ea08db159
---

# Laravel Pint
Expand Down Expand Up @@ -49,6 +49,12 @@ Pint отобразит подробный список всех файлов,
./vendor/bin/pint --test
```

Если вы хотите, чтобы Pint изменял только файлы, отличающиеся от указанной ветки согласно Git, вы можете использовать опцию `--diff=[branch]`. Это можно эффективно использовать в среде непрерывной интеграции (например, в действиях GitHub) для экономии времени, проверяя только новые или изменённые файлы:

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

Если вы хотите, чтобы Pint модифицировал только те файлы, которые имеют незафиксированные изменения согласно Git, вы можете использовать опцию `--dirty`:

```shell
Expand Down