mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-25 06:44:59 +00:00
Contributing.md: Replace egrep with grep -E in clang-format command.
This commit is contained in:
parent
4d3f247cc3
commit
01978cfcf7
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
- 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):
|
- 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):
|
||||||
|
|
Loading…
Add table
Reference in a new issue