mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 23:09:05 +02:00
docs/codingstyle: fix clang-format command
I should've copy/pasted it back into my terminal to double-check it. The `-o` is incorrect (it splits each char that matches into its own line) and there's a missing `^` to remove lines that start with a hash even if they contain anything else. Signed-off-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24028>
This commit is contained in:
parent
209a347a8c
commit
bcc1e33966
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ commit`` by adding the following in your ``.git/hooks/pre-commit``:
|
|||
.. code:: sh
|
||||
|
||||
shopt -s globstar
|
||||
git clang-format $upstream -- $(grep -oE '[^#]' .clang-format-include)
|
||||
git clang-format $upstream -- $(grep -E '^[^#]' .clang-format-include)
|
||||
# replace $upstream with the name of the remote tracking upstream mesa
|
||||
# if you don't know, it's probably `origin`
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue