summaryrefslogtreecommitdiff
path: root/.gitattributes
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-02-22 15:01:23 -0500
committerBrad King <brad.king@kitware.com>2017-02-22 16:59:26 -0500
commitd5f39a56a44fe061018c6acc15e1c3aa7337ff54 (patch)
tree4a4e0bf7ef543de77f176899540a426a5d6b6d23 /.gitattributes
parentf6986ee479f1cce6da17859eaf6a0616852b9e20 (diff)
downloadcmake-d5f39a56a44fe061018c6acc15e1c3aa7337ff54.tar.gz
clang-format.bash: Use Git attributes to mark files for formatting
Diffstat (limited to '.gitattributes')
-rw-r--r--.gitattributes6
1 files changed, 3 insertions, 3 deletions
diff --git a/.gitattributes b/.gitattributes
index abb698ad09..38291609ee 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -2,11 +2,11 @@
.hooks* export-ignore
# Custom attribute to mark sources as using our C code style.
-[attr]our-c-style whitespace=tab-in-indent
+[attr]our-c-style whitespace=tab-in-indent format.clang-format
# Custom attribute to mark sources as generated.
-# Do not perform whitespace checks.
-[attr]generated whitespace=-tab-in-indent,-indent-with-non-tab
+# Do not perform whitespace checks. Do not format.
+[attr]generated whitespace=-tab-in-indent,-indent-with-non-tab -format.clang-format
bootstrap crlf=input
configure crlf=input