summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorEric Engestrom <eric@igalia.com>2023-07-06 18:19:58 +0100
committerMarge Bot <emma+marge@anholt.net>2023-07-06 18:54:41 +0000
commitbcc1e3396658ad08f766f7c2c482d0b487c5e275 (patch)
treeeaffa4d7f53accb47065a3326c5687625183823a /docs
parent209a347a8c3341318981cd5bf64d7792c19542d0 (diff)
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>
Diffstat (limited to 'docs')
-rw-r--r--docs/codingstyle.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/codingstyle.rst b/docs/codingstyle.rst
index 6e8b6b74a5d..058bd922c89 100644
--- a/docs/codingstyle.rst
+++ b/docs/codingstyle.rst
@@ -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`