From fe11715bccaa60f4507277f95b88564997d5f85a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Pineau?= Date: Thu, 15 Oct 2026 16:10:19 +0200 Subject: [PATCH] Fix the stdin diff examples of the documentation --- doc/commands.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/commands.md b/doc/commands.md index d131b538..c0c5372d 100644 --- a/doc/commands.md +++ b/doc/commands.md @@ -35,8 +35,8 @@ If no stdin is provided, it will load the currently staged git diff. Example stdin usages: ```sh -git diff --raw | php ./vendor/bin/grumphp git:pre-commit -git diff --staged --raw | php ./vendor/bin/grumphp git:pre-commit +git diff --raw --patch | php ./vendor/bin/grumphp git:pre-commit +git diff --staged --raw --patch | php ./vendor/bin/grumphp git:pre-commit git ls-files src | php ./vendor/bin/grumphp git:pre-commit ``` @@ -70,8 +70,8 @@ If no stdin is provided, it will load all files known to git. Example stdin usages: ```sh -git diff --raw | php ./vendor/bin/grumphp run -git diff --raw --staged | php ./vendor/bin/grumphp run +git diff --raw --patch | php ./vendor/bin/grumphp run +git diff --raw --patch --staged | php ./vendor/bin/grumphp run git ls-files src | php ./vendor/bin/grumphp run ```