Skip to content

Commit 13cfd10

Browse files
committed
Repository: Add filetype attribute handling for specific filetypes found in the repository.
1 parent a1c708d commit 13cfd10

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.gitattributes

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Lineendings
2+
*.sln eol=crlf
3+
*.vcproj eol=crlf
4+
*.vcxproj* eol=crlf
5+
6+
# Whitespace rules
7+
# strict (no trailing, no tabs)
8+
*.cpp whitespace=trailing-space,space-before-tab,tab-in-indent,cr-at-eol
9+
*.h whitespace=trailing-space,space-before-tab,tab-in-indent,cr-at-eol
10+
11+
# normal (no trailing)
12+
*.sql whitespace=trailing-space,space-before-tab,cr-at-eol
13+
*.txt whitespace=trailing-space,space-before-tab,cr-at-eol
14+
15+
# special files which must ignore whitespace
16+
*.patch whitespace=-trailing-space

0 commit comments

Comments
 (0)