Skip to content

Commit

Permalink
ENH: Add .gitattributes
Browse files Browse the repository at this point in the history
For clang-format action.
  • Loading branch information
thewtex committed Jan 13, 2020
1 parent 6cb85be commit 010b364
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .gitattributes
@@ -0,0 +1,14 @@
# Custom attribute to mark sources as using our C++/C code style.
[attr]our-c-style whitespace=tab-in-indent,no-lf-at-eof hooks.style=KWStyle,clangformat

*.c our-c-style
*.h our-c-style
*.cxx our-c-style
*.hxx our-c-style
*.txx our-c-style
*.txt whitespace=tab-in-indent,no-lf-at-eof
*.cmake whitespace=tab-in-indent,no-lf-at-eof

# ExternalData content links must have LF newlines
*.md5 crlf=input
*.sha512 crlf=input

0 comments on commit 010b364

Please sign in to comment.