-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitattributes
610 lines (552 loc) · 16.5 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
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
# Define macros (only works in top-level gitattributes files)
[attr]lfs filter=lfs diff=lfs merge=lfs -text
[attr]unity-yaml merge=unityyamlmerge eol=lf linguist-language=yaml
# Optionally collapse Unity-generated files on GitHub diffs
[attr]unity-yaml merge=unityyamlmerge text linguist-language=yaml linguist-generated
#
# These settings are for common git project.
#
# Details per file setting:
# text These files should be normalized (i.e. convert CRLF to LF).
# binary These files are binary and should be left untouched.
#
# Note that binary is a macro for -text -diff.
######################################################################
# Auto detect text files and perform LF normalization
## Handle line endings automatically for files detected as
## text and leave all files detected as binary untouched.
## This will handle all files NOT defined below.
* text=auto
#
# The above will handle all files NOT found below
#
# Documents & Documentation
*.[Dd][Oo][Cc] diff=astextplain
*.[Dd][Oo][Cc][Xx] diff=astextplain
*.[Dd][oO][tT] diff=astextplain
*.[pP][dD][Ff] diff=astextplain
*.[Rr][Tt][Ff] diff=astextplain
#*.rtf text
*.[Oo][Dd][Ss] binary
*.[Oo][Dd][Tt] text
*.[Xx][Ll][Ss] binary
*.[Xx][Ll][Ss][Xx] binary
*.chm binary
*.hlp binary
*.epub diff=astextplain
*.markdown text diff=markdown
*.md text diff=markdown linguist-detectable
*.mdx text diff=markdown
*.mdwn text diff=markdown
*.mdown text diff=markdown
*.mkd text diff=markdown
*.mkdn text diff=markdown
*.mdtxt text
*.mdtext text
*.adoc text
*.bibtex text diff=bibtex
*.tex text diff=tex
*.textile text
*.txt text
*.ipynb text eol=lf
AUTHORS text
CHANGELOG text
CHANGES text
CONTRIBUTING text
COPYING text
copyright text
*COPYRIGHT* text
INSTALL text
license text
LICENSE text
NEWS text
readme text
*README* text
TODO text
# Scripts
*.bash text eol=lf
*.fish text eol=lf
*.sh text eol=lf
*.zsh text eol=lf
# These are explicitly windows files and should use crlf
*.bat text eol=crlf
*.cmd text eol=crlf
# PowerShell
*.ps1 text eol=crlf
*.ps1x text eol=crlf
*.psm1 text eol=crlf
*.psd1 text eol=crlf
*.ps1xml text eol=crlf
*.pssc text eol=crlf
*.psrc text eol=crlf
*.cdxml text eol=crlf
# MicrosoftShell
*.msh text eol=crlf
*.msh1 text eol=crlf
*.msh2 text eol=crlf
*.mshxml text eol=crlf
*.msh1xml text eol=crlf
*.msh2xml text eol=crlf
*.mcf text eol=crlf
# Source code
*.ada text diff=ada
*.adb text diff=ada
*.ads text diff=ada
*.as text
*.asc text
*.c text diff=cpp
*.c++ text diff=cpp
*.cc text diff=cpp
*.coffee text
*.cpi text diff=cpp
*.cpp text diff=cpp
*.cs text diff=csharp
*.cshtml text diff=html
*.css text diff=css
*.csx text diff=csharp
*.cxx text diff=cpp
*.dfm text
*.dof text
*.ex diff=elixir
*.exs diff=elixir
*.f text diff=fortran
*.f03 text diff=fortran
*.f90 text diff=fortran
*.f95 text diff=fortran
*.fla text
*.for text diff=fortran
*.gradle text diff=java
*.gradle.kts text diff=kotlin
*.groovy text diff=java
*.h text diff=cpp
*.h++ text diff=cpp
*.hh text diff=cpp
*.hpp text diff=cpp
*.htm text diff=html
*.html text diff=html
*.inc text
*.java text diff=java
*.js text
*.jsfl text
*.jsp text
*.jspf text
*.jspx text
*.jsx text
*.kt text diff=kotlin
*.less text
*.ls text
*.lua text
*.m text diff=objc
#*.m text diff=mathematica
#*.m text diff=matlab
*.map text -diff
*.mu text diff=matlab
*.nb text diff=mathematica
*.od text
*.onlydata text
#*.p text diff=pascal
*.php text diff=php
*.pl text
*.pl text diff=perl
*.pm text diff=perl
*.po binary
*.pp text diff=pascal
*.ps text
*.pxd text diff=python
*.py text diff=python
*.py3 text diff=python
*.pyi text diff=python
*.pyw text diff=python
*.pyx text diff=python
*.pyz text diff=python
*.rb text diff=ruby
*.rs text diff=rust
*.sass text
*.scala text diff=java
*.scm text
*.scss text diff=css
*.sql text
*.styl text
*.swift text diff=swift
*.tag text
*.tagx text
*.tld text
*.ts text
*.tsx text
*.wl text diff=mathematica
*.wls text diff=mathematica
*.xhtml text diff=html
.husky/* text eol=lf
# Test files
*.mt text diff=mathematica
*.pas text diff=pascal
*.wlt text diff=mathematica
# Templates
*.dot text
*.ejs text
*.erb text
*.haml text
*.handlebars text
*.hbs text
*.hbt text
*.jade text
*.latte text
*.mustache text
*.njk text
*.phtml text
*.svelte text
*.tmpl text
*.tpl text
*.twig text
*.vue text
# Serialisation
*.csv text eol=crlf
*.tab text
*.tsv text
*.json text
*.toml text diff=toml
*.yaml text
*.yml text
*.xml text
*.dtd text
*.xsd text
*.xsl text
# Configs
*.cfg text
*.cnf text
*.conf text
*.config text
*.dsk binary
.editorconfig text
.env text
.gitattributes text linguist-language=gitattributes
.gitconfig text
.gitignore text
.htaccess text
*.ini text
*.lock text -diff merge=ours
package.json text eol=lf
package-lock.json text eol=lf -diff
pnpm-lock.yaml text eol=lf -diff
.prettierrc text
yarn.lock text -diff
*.properties text
browserslist text
[Mm]akefile text
# Fixes syntax highlighting on GitHub to allow comments
tsconfig.json linguist-language=JSON-with-Comments
# Docker
Dockerfile text
# Heroku
Procfile text
# Graphics
*.ai binary
*.bmp binary
*.eps binary
*.exr binary
*.gif binary
*.gifv binary
*.hdr binary
*.ico binary
*.iff binary
*.jng binary
*.jp2 binary
*.jpeg binary
*.jpg binary
*.jpx binary
*.jxr binary
*.pbm text
*.pdf binary
*.pgm text
*.pict binary
*.png binary
*.ppm text
*.psb binary
*.psd binary
# SVG treated as an asset (binary) by default.
*.svg text
# If you want to treat it as binary, use the following line instead.
# *.svg binary
*.svgz binary
*.tga binary
*.tif binary
*.tiff binary
*.wbmp binary
*.webp binary
*.xpm text
# Audio
*.aif binary
*.aiff binary
*.it binary
*.kar binary
*.m4a binary
*.mid binary
*.midi binary
*.mod binary
*.mp3 binary
*.ogg binary
*.ra binary
*.s3m binary
*.wav binary
*.xm binary
# Video
*.3gpp binary
*.3gp binary
*.as binary
*.asf binary
*.asx binary
*.avi binary
*.fla binary
*.flv binary
*.m4v binary
*.mng binary
*.mov binary
*.mp4 binary
*.mpeg binary
*.mpg binary
*.ogv binary
*.swc binary
*.swf binary -crlf -diff -merge
*.webm binary
*.wmv binary
# Compressed Archive (can also use lfs instead of binary)
*.7z binary
*.bz2 binary
*.ear binary
*.gz binary
*.jar binary
*.rar binary
*.tar binary
*.tgz binary
*.war binary
*.zip binary
# Fonts
*.eot binary
*.otf binary
*.ttf binary
*.woff binary
*.woff2 binary
# 3D models
*.3dm binary
*.3ds binary
*.blend binary
*.c4d binary
*.collada binary
*.dae binary
*.dxf binary
*.FBX binary
*.fbx binary
*.jas binary
*.lws binary
*.lxo binary
*.ma binary
*.max binary
*.mb binary
*.obj binary
*.ply binary
*.skp binary
*.stl binary
*.ztl binary
# Compiled Bytecode files
*.class binary
*.pyc binary
*.pyo binary
# Compiled Object files
*.slo binary
*.lo binary
*.o binary
*.obj binary
*.ppu binary
# Precompiled Headers
*.gch binary
*.pch binary
# Compiled Dynamic libraries
*.so binary
*.dylib binary
*.dll binary
*.pdb binary
*.pyd binary
# Compiled Static libraries
*.lai binary
*.la binary
*.a binary
*.lib binary
*.swc binary -crlf -diff -merge
# Executables
*.apk binary
*.exe binary
*.out binary
*.app binary
# ETC
*.df text
*.jks binary
*.db binary
*.p binary
*.pkl binary
*.pickle binary
*.a binary
*.reason binary
*.rns binary
*.mex* binary
*.fig binary
*.mat binary
*.mdl binary
*.slx binary
*.mdlp binary
*.slxp binary
*.sldd binary
*.mltbx binary
*.mlappinstall binary
*.mlpkginstall binary
*.mn binary
*.mx binary
#*.mdx binary
*.dbf binary
*.bak binary
# Note: .db, .p, and .pkl files are associated with the
# python modules ``pickle``, ``dbm.*``, ``shelve``,
# ``marshal``, ``anydbm``, & ``bsddb`` (among others).
# Pascal/Lazarus Project files
*.lpi text
*.lpr text
*.lfm text
*.lrs text
*.or text merge=ours linguist-vendored
*.lpk text
*.lps text
*.lrt text
*.rst text
*.rsj text
*.compiled text
*.res text
# Servoy files
*.frm -text
*.val -text
*.tbl -text
*.rel -text
*.obj -text
*.dbi -text
*.sec -text
#*.js seol=lf
# R files
*.Rdata binary
*.RData binary
*.rda binary
*.rdb binary
*.rds binary
*.Rd text
*.Rdx binary
*.[Rr]md text linguist-detectable
*.R text
*.Rproj text
# Vim files
*.vim text eol=lf
.vimrc text eol=lf
.gvimrc text eol=lf
# Common build-tool wrapper scripts ('.cmd' versions are handled by 'Common.gitattributes')
mvnw text eol=lf
gradlew text eol=lf
# RC files (like .babelrc or .eslintrc)
*.*rc text
# Ignore files (like .npmignore or .gitignore)
*.*ignore text
# Prevents massive diffs from built files
dist/* binary
# Text files where line endings should be preserved
*.patch -text
# These settings are for Ruby On Rails project
# Define a dummy ours merge strategy with: $ git config --global merge.ours.driver true
schema.rb merge=ours diff=ruby
# Treat all Go files in this repo as binary, with no git magic updating
# line endings. Windows users contributing to Go will need to use a
# modern version of git and editors capable of LF line endings.
*.go -text diff=golang
# https://tina.io/
.tina/__generated__/ linguist-generated
# Prevents massive diffs caused by vendored, minified files
**/.yarn/releases/** binary
**/.yarn/plugins/** binary
#
# Exclude files from exporting
#
.gitattributes export-ignore
.gitignore export-ignore
.gitkeep export-ignore
README.md export-ignore
phpunit.xml.dist export-ignore
/docs export-ignore
/tests export-ignore
# Use the new version generated by tools
# Some developers uses these, but others uses -diff for mistakes prevention
yarn.lock merge=ours
package-lock.json merge=ours
# Do not try and merge these generated files
packages-lock.json -diff
yarn.lock -diff
rev-manifest.json -diff
*.map -diff
public/build/js/*.js -diff
public/build/css/*.css -diff
# Remove compiled assets from github statistics
public/build/css/*.css linguist-vendored
public/build/js/* linguist-vendored
public/build/font/* linguist-vendored
## CSharp project files
*.sln text eol=crlf
*.csproj text eol=crlf
# Swift project files
*.pbxproj merge=union
# Objective-C: compare .pbxproj files as binary and always merge as union
*.pbxproj binary -merge=union
# Unity files
*.cginc text
*.compute text linguist-language=hlsl
*.raytrace text linguist-language=hlsl
*.shader text
# Unity JSON files
*.asmdef text linguist-language=json
*.asmref text linguist-language=json
*.index text linguist-language=json
*.inputactions text linguist-language=json
*.shadergraph text linguist-language=json
*.shadersubgraph text linguist-language=json
# Unity UI Toolkit files
*.tss text diff=css linguist-language=css
*.uss text diff=css linguist-language=css
*.uxml text linguist-language=xml linguist-detectable
# Unity YAML
*.anim unity-yaml
*.asset unity-yaml
*.brush unity-yaml
*.controller unity-yaml
*.flare unity-yaml
*.fontsettings unity-yaml
*.giparams unity-yaml
*.guiskin unity-yaml
*.lighting unity-yaml
*.mask unity-yaml
*.mat unity-yaml
*.meta unity-yaml
*.mixer unity-yaml
*.overrideController unity-yaml
*.playable unity-yaml
*.prefab unity-yaml
*.preset unity-yaml
*.renderTexture unity-yaml
*.scenetemplate unity-yaml
*.shadervariants unity-yaml
*.signal unity-yaml
*.spriteatlas unity-yaml
*.spriteatlasv2 unity-yaml
*.terrainlayer unity-yaml
*.unity unity-yaml
# "physic" for 3D but "physics" for 2D
*.physicMaterial unity-yaml
*.physicsMaterial2D unity-yaml
# Exclude third-party plugins from GitHub stats
Assets/Plugins/** linguist-vendored
# Unity LFS
*.cubemap lfs
*.unitypackage lfs
# Spine export file for Unity
*.skel.bytes lfs