-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.gitattributes
111 lines (98 loc) · 2.25 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
# Common text files
*.txt text eol=lf
*.xml text eol=lf
*.json text eol=lf
*.yaml text eol=lf
*.yml text eol=lf
*.md text eol=lf
*.markdown text eol=lf
# Scripts
*.sh text eol=lf
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf
# Web
*.htm text eol=lf
*.html text eol=lf
*.css text eol=lf
*.js text eol=lf
*.ts text eol=lf
*.jsx text eol=lf
*.tsx text eol=lf
# .NET specific
*.cs text eol=crlf diff=csharp
*.vb text eol=crlf
*.fs text eol=crlf
*.fsx text eol=crlf
*.sln text eol=crlf
*.csproj text eol=crlf
*.vbproj text eol=crlf
*.fsproj text eol=crlf
*.dbproj text eol=crlf
*.xaml text eol=crlf
# Java specific
*.java text eol=lf diff=java
*.gradle text eol=lf
*.gradle.kts text eol=lf
*.scala text eol=lf
*.sc text eol=lf
*.kt text eol=lf
*.kts text eol=lf
# Node.js specific
package.json text eol=lf
package-lock.json text -diff
yarn.lock text -diff
# Config files
*.config text eol=lf
*.conf text eol=lf
*.properties text eol=lf
*.prefs text eol=lf
*.opts text eol=lf
# SQL
*.sql text eol=lf
# Binary files (no EOL conversion, no diff)
*.jar -text -diff
*.war -text -diff
*.ear -text -diff
*.dll -text -diff
*.exe -text -diff
*.pdb -text -diff
*.zip -text -diff
*.7z -text -diff
*.gz -text -diff
*.tar -text -diff
*.png -text -diff
*.jpg -text -diff
*.jpeg -text -diff
*.gif -text -diff
*.ico -text -diff
*.pdf -text -diff
*.docx -text -diff
*.xlsx -text -diff
*.pptx -text -diff
# Specific file types
*.csv text eol=lf
*.tsv text eol=lf
*.svg text eol=lf
# Enforce UTF-8 encoding
*.sql text eol=lf working-tree-encoding=UTF-8
*.cs text eol=crlf working-tree-encoding=UTF-8
*.java text eol=lf working-tree-encoding=UTF-8
*.js text eol=lf working-tree-encoding=UTF-8
*.ts text eol=lf working-tree-encoding=UTF-8
*.json text eol=lf working-tree-encoding=UTF-8
*.htm text eol=lf working-tree-encoding=UTF-8
*.html text eol=lf working-tree-encoding=UTF-8
# Linguist language overrides
*.cs linguist-language=C#
*.java linguist-language=Java
*.kt linguist-language=Kotlin
*.scala linguist-language=Scala
*.js linguist-language=JavaScript
*.ts linguist-language=TypeScript
# Exclude files from GitHub language statistics
docs/* linguist-documentation
*.md linguist-documentation
# Treat specific generated files as binary to avoid cluttering diffs
*.min.js -diff
*.min.css -diff