Skip to content
Snippets Groups Projects
Commit f6986ee4 authored by Brad King's avatar Brad King
Browse files

Define a custom Git attribute to mark sources using our C style

parent 2256c3a7
No related branches found
No related tags found
No related merge requests found
.gitattributes export-ignore .gitattributes export-ignore
.hooks* export-ignore .hooks* export-ignore
# Custom attribute to mark sources as using our C code style.
[attr]our-c-style whitespace=tab-in-indent
# Custom attribute to mark sources as generated. # Custom attribute to mark sources as generated.
# Do not perform whitespace checks. # Do not perform whitespace checks.
[attr]generated whitespace=-tab-in-indent,-indent-with-non-tab [attr]generated whitespace=-tab-in-indent,-indent-with-non-tab
...@@ -20,10 +23,17 @@ configure crlf=input ...@@ -20,10 +23,17 @@ configure crlf=input
*.sln -crlf *.sln -crlf
*.vcproj -crlf *.vcproj -crlf
*.c whitespace=tab-in-indent *.c our-c-style
*.h whitespace=tab-in-indent *.cc our-c-style
*.cxx whitespace=tab-in-indent *.cpp our-c-style
*.txt whitespace=tab-in-indent *.cu our-c-style
*.cmake whitespace=tab-in-indent *.cxx our-c-style
*.h our-c-style
*.hh our-c-style
*.hpp our-c-style
*.hxx our-c-style
*.notcu our-c-style
*.cmake whitespace=tab-in-indent
*.rst whitespace=tab-in-indent conflict-marker-size=79 *.rst whitespace=tab-in-indent conflict-marker-size=79
*.txt whitespace=tab-in-indent
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment