From 5876c879aca23901bec0d19737d8a09ea08db159 Mon Sep 17 00:00:00 2001 From: Len Woodward Date: Tue, 14 Jan 2025 08:13:51 -0800 Subject: [PATCH] [11.x] Adds documentation for `pint --diff=[DIFF]` (#10100) * adds documentation for pint --diff * Update pint.md --------- Co-authored-by: Taylor Otwell --- pint.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pint.md b/pint.md index ea7f8132122..a485fa4414a 100644 --- a/pint.md +++ b/pint.md @@ -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