From 01978cfcf70c13206bc64c2d9b201844bb55535a Mon Sep 17 00:00:00 2001 From: rsgnz <639472+rsgnz@users.noreply.github.com> Date: Sat, 15 Mar 2025 10:02:53 +0000 Subject: [PATCH] Contributing.md: Replace egrep with grep -E in clang-format command. --- Contributing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Contributing.md b/Contributing.md index 485fdd1ba7..23f529a5a3 100644 --- a/Contributing.md +++ b/Contributing.md @@ -49,7 +49,7 @@ In most cases, clang-format can and **should** be used to automatically reformat - To run clang-format on all staged files: ``` - git diff --cached --name-only | egrep '[.](cpp|h|mm)$' | xargs clang-format -i + git diff --cached --name-only | grep -E '[.](cpp|h|mm)$' | xargs -I {} clang-format -i {} ``` - Formatting issues can be checked for before committing with a lint script that is included with the codebase. To enable it as a pre-commit hook (assuming you are in the repository root):