summaryrefslogtreecommitdiff
path: root/.gitattributes
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-02-22 14:33:30 -0500
committerBrad King <brad.king@kitware.com>2017-02-22 16:53:26 -0500
commit2256c3a7db89c58ecdd0e6cfcdff7805522187f1 (patch)
tree1d2de505e243cf5dc1387dc28851b9c191897efa /.gitattributes
parentf45e3b950991f5c4f66cd132bda61a369a3016d7 (diff)
downloadcmake-2256c3a7db89c58ecdd0e6cfcdff7805522187f1.tar.gz
Define a custom Git attribute to mark source files as generated
Diffstat (limited to '.gitattributes')
-rw-r--r--.gitattributes4
1 files changed, 4 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
index d959918c70..dfc32503a6 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,6 +1,10 @@
.gitattributes export-ignore
.hooks* export-ignore
+# Custom attribute to mark sources as generated.
+# Do not perform whitespace checks.
+[attr]generated whitespace=-tab-in-indent,-indent-with-non-tab
+
bootstrap crlf=input
configure crlf=input
*.[1-9] crlf=input