Browse files

[11393] add whitespace rules to .gitattributes

Signed-off-by: DasBlub <DasBlub@gmail.com>
  • Loading branch information...
1 parent f373dd6 commit 57a6b30000583e0942b13d473e48ac3cd8afd7f7 Schmoozerd committed with DasBlub Apr 24, 2011
Showing with 14 additions and 1 deletion.
  1. +13 −0 .gitattributes
  2. +1 −1 src/shared/revision_nr.h
View
13 .gitattributes
@@ -1,3 +1,16 @@
+# Lineendings
*.sln eol=crlf
*.vcproj eol=crlf
*.vcxproj* eol=crlf
+
+# Whitespace rules
+# strict (no trailing, no tabs)
+*.cpp whitespace=trailing-space,space-before-tab,tab-in-indent,cr-at-eol
+*.h whitespace=trailing-space,space-before-tab,tab-in-indent,cr-at-eol
+
+# normal (no trailing)
+*.sql whitespace=trailing-space,space-before-tab,cr-at-eol
+*.txt whitespace=trailing-space,space-before-tab,cr-at-eol
+
+# special files which must ignore whitespace
+*.patch whitespace=-trailing-space
View
2 src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
- #define REVISION_NR "11392"
+ #define REVISION_NR "11393"
#endif // __REVISION_NR_H__

0 comments on commit 57a6b30

Please sign in to comment.