summaryrefslogtreecommitdiffstats
path: root/.gitattributes
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-02-22 20:01:23 (GMT)
committerBrad King <brad.king@kitware.com>2017-02-22 21:59:26 (GMT)
commitd5f39a56a44fe061018c6acc15e1c3aa7337ff54 (patch)
tree4a4e0bf7ef543de77f176899540a426a5d6b6d23 /.gitattributes
parentf6986ee479f1cce6da17859eaf6a0616852b9e20 (diff)
downloadCMake-d5f39a56a44fe061018c6acc15e1c3aa7337ff54.zip
CMake-d5f39a56a44fe061018c6acc15e1c3aa7337ff54.tar.gz
CMake-d5f39a56a44fe061018c6acc15e1c3aa7337ff54.tar.bz2
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 abb698a..3829160 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