Merge pull request #13428 from rsgnz/Contributing.md-changes

Contributing.md: Replace egrep with grep -E in clang-format command.
This commit is contained in:
OatmealDome 2025-03-16 14:59:49 -04:00 committed by GitHub
commit dc4cb7874a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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):