-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
.gitattributes
151 lines (137 loc) · 5.76 KB
/
.gitattributes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# See https://git-scm.com/docs/gitattributes.
#------------------------------------------------------------------------------
# Text files.
#
# text
# - Converts line endings to LF in the repository.
#
# eol=lf
# - Normalizes line endings to LF on checkin and prevents conversion to CRLF
# when the file is checked out.
#
# whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
# - Treats trailing whitespaces at the end of the line as an error.
# - Does not treat blank lines added at the end of file as an error.
# - Does not treat a space character that appears immediately before a tab
# character in the initial indent part of the line as an error.
# - Treats a tab character in the initial indent part of the line as an
# error.
# - Sets the tabwidth to 2.
#
# The whitespace configuration defines what diff and apply should consider
# whitespace errors
# - Errors are exposed by default in 'git diff --color'.
# - Validate with 'git diff --check'.
# - Deny applying with 'git apply --whitespace=error-all'.
# - Fix automatically with 'git apply --whitespace=fix'.
#------------------------------------------------------------------------------
*.config text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
*.css text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=css
*.dist text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
*.engine text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php
*.htm text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=html
*.html text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=html
*.inc text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php
*.install text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php
*.js text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
*.json text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
*.lock text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
*.map text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
*.md text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=markdown
*.module text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php
*.php text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php
*.po text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
*.profile text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php
*.sass text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
*.script text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
*.scss text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=css
*.sh text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
*.sql text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
*.svg text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
*.theme text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php
*.toml text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
*.twig text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
*.txt text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
*.xml text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
*.yaml text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
*.yml text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
#------------------------------------------------------------------------------
# Binary files.
#
# binary
# - This is a macro for -text, -diff, -merge.
#------------------------------------------------------------------------------
# Archive.
*.iso binary
*.tar binary
# Compressed.
*.bz2 binary
*.gz binary
# Compressed archive.
*.phar binary
*.rar binary
*.tar.gz binary
*.tgz binary
*.zip binary
# Adobe.
*.ai binary
*.eps binary
*.pdf binary
*.ps binary
*.psd binary
# Audio/video.
*.mp3 binary
*.mp4 binary
*.oga binary
*.ogg binary
*.ogv binary
*.ogx binary
*.webm binary
# Fonts.
*.eot binary
*.otf binary
*.ttf binary
*.woff binary
*.woff2 binary
# Images.
*.bmp binary
*.gif binary
*.ico binary
*.jfif binary
*.jpe binary
*.jpeg binary
*.jpg binary
*.png binary
*.svgz binary
*.tif binary
*.tiff binary
*.webp binary
# Libre Office.
*.odb binary
*.odf binary
*.odg binary
*.odm binary
*.odp binary
*.ods binary
*.odt binary
*.otg binary
*.otp binary
*.ots binary
*.ott binary
# Microsoft Office.
*.docx binary
*.dotx binary
*.potx binary
*.pptx binary
*.xlsx binary
*.xltx binary
# Microsoft Office (legacy).
*.doc binary
*.dot binary
*.pot binary
*.ppt binary
*.xls binary
*.xlt binary
# Other.
*.dll binary
*.exe binary