-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.gitattributes
More file actions
184 lines (163 loc) · 3 KB
/
Copy path.gitattributes
File metadata and controls
184 lines (163 loc) · 3 KB
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
# See: https://help.github.com/articles/dealing-with-line-endings/
# ensure the .gitattributes file itself is normalized
.gitattributes text eol=lf
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto
# Explicitly declare text files that are always converted
# Code files - normalized to LF in repo, checked out per platform (via core.autocrlf)
*.java text diff=java
*.kotlin text diff=kotlin
*.kt text diff=kotlin
*.scala text
*.sbt text
*.c text diff=cpp
*.cpp text diff=cpp
*.c++ text diff=cpp
*.h text diff=cpp
*.hpp text diff=cpp
*.h++ text diff=cpp
*.cs text diff=csharp
*.rs text diff=rust eol=lf
*.go text diff=golang
*.swift text
*.m text diff=objc
*.mm text diff=objc
*.groovy text
*.gradle text
*.gradle.kts text diff=kotlin
# Scripting languages
*.py text diff=python
*.php text diff=php
*.php3 text diff=php
*.rb text diff=ruby
*.pl text
*.lua text
*.coffee text
*.handlebars text
*.ddl text
*.sql text
# Web/Frontend
*.html text diff=html
*.htm text diff=html
*.css text diff=css
*.less text
*.sass text
*.scss text
*.stylus text
*.js text
*.jsx text
*.ts text
*.tsx text
*.vue text
*.htc text
*.svg text
# Markup & Data
*.xml text
*.xaml text
*.xsd text
*.dtd text
*.ent text
*.csv text
*.json text eol=lf
*.yaml text eol=lf
*.yml text eol=lf
*.toml text eol=lf
# Config & Build files
*.properties text
*.settings text
*.conf text
*.resx text
*.wsdd text
*.wsdl text
*.classpath text
*.project text
*.info text
*.jmx text
*.jtl text
*.tmpl text
*.lst text
*.prefs text
*.launch text
Cargo.toml text eol=lf
Cargo.lock text eol=lf
# Documentation
*.txt text
*.log text
*.md text eol=lf
*.markdown text eol=lf
*.readme text
*.README text
*.tex text diff=tex
# Windows project files
*.csproj text
*.props text
*.targets text
# Fonts (binary)
*.ttf -text
*.otf -text
*.woff -text
*.woff2 -text
# Certificates & keys (binary / don't normalize)
*.pem -text
*.key -text
*.pfx -text
*.p12 -text
*.cer -text
# Databases / blobs
*.sqlite -text
*.db -text
# Unix scripts - keep LF only (no CRLF conversion)
*.sh text eol=lf
Makefile text eol=lf
Dockerfile text eol=lf
.editorconfig text eol=lf
# Windows scripts - keep CRLF only (no LF conversion)
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf
# Patches and diffs - keep LF only
*.patch text eol=lf
*.diff text eol=lf
# npm/yarn config - keep LF for consistency with npm standards
package.json text eol=lf
package-lock.json text eol=lf
yarn.lock text eol=lf
pnpm-lock.yaml text eol=lf
# Denote all files that are truly binary and should not be modified
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.xcf binary
*.mp4 binary
*.psd binary
*.swf binary
*.wav binary
*.mpg binary
*.webm binary
*.wmv binary
# Documents
*.pdf binary
*.doc binary
*.dot binary
*.odt binary
*.xls binary
*.xlsx binary
# Archives
*.7z binary
*.zip binary
*.gz binary
*.tgz binary
*.tar binary
*.tar.gz binary
*.bz binary
*.tar.bz binary
*.jar binary
*.war binary
*.ear binary
*.pack binary
# Cache, class, etc.
*.cache binary
*.class binary
*.bin binary