summaryrefslogtreecommitdiff
path: root/.gitattributes
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-01-17 14:23:59 -0500
committerBrad King <brad.king@kitware.com>2023-01-18 11:48:49 -0500
commit48639aa8fc3f63ecf01341acc4ac5d6ca7070364 (patch)
tree2dfe131a092cec9ac8231e65f8ac4db1383493a0 /.gitattributes
parent9ce1c870374dc1ab910ed921f41d03df75f254f3 (diff)
downloadcmake-48639aa8fc3f63ecf01341acc4ac5d6ca7070364.tar.gz
clang-format.bash: Use generic clang-format attribute
Specify the clang-format version in the attribute value instead of its name. Issue: #24315
Diffstat (limited to '.gitattributes')
-rw-r--r--.gitattributes4
1 files changed, 2 insertions, 2 deletions
diff --git a/.gitattributes b/.gitattributes
index 71ecacf2a6..43ad3b7efc 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -4,11 +4,11 @@
.editorconfig export-ignore
# Custom attribute to mark sources as using our C code style.
-[attr]our-c-style whitespace=tab-in-indent format.clang-format-6.0
+[attr]our-c-style whitespace=tab-in-indent format.clang-format=6.0
# Custom attribute to mark sources as generated.
# Do not perform whitespace checks. Do not format.
-[attr]generated whitespace=-tab-in-indent,-indent-with-non-tab -format.clang-format-6.0
+[attr]generated whitespace=-tab-in-indent,-indent-with-non-tab -format.clang-format
bootstrap eol=lf
configure eol=lf