-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.gitattributes
More file actions
136 lines (127 loc) · 3.71 KB
/
.gitattributes
File metadata and controls
136 lines (127 loc) · 3.71 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
# ------------------------------------------------------------------------------
# Core: normalize text files and keep LF in repo
# ------------------------------------------------------------------------------
* text=auto eol=lf
# ------------------------------------------------------------------------------
# Source code (force LF)
# ------------------------------------------------------------------------------
*.java text eol=lf
*.kt text eol=lf
*.py text eol=lf
*.js text eol=lf
*.jsx text eol=lf
*.ts text eol=lf
*.tsx text eol=lf
*.html text eol=lf
*.css text eol=lf
*.scss text eol=lf
*.md text eol=lf
*.txt text eol=lf
*.xml text eol=lf
*.json text eol=lf
*.yml text eol=lf
*.yaml text eol=lf
*.sh text eol=lf
*.bash text eol=lf
*.gradle text eol=lf
*.properties text eol=lf
*.sql text eol=lf
*.c text eol=lf
*.cpp text eol=lf
*.h text eol=lf
# ------------------------------------------------------------------------------
# Binary files (never touch line endings / no diffs)
# ------------------------------------------------------------------------------
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.svg binary
*.webp binary
*.pdf binary
*.jar binary
*.war binary
*.class binary
*.dll binary
*.exe binary
*.so binary
*.dylib binary
*.db binary
*.sqlite binary
*.zip binary
*.tar binary
*.tar.gz binary
*.tgz binary
*.7z binary
*.gz binary
*.xz binary
*.bz2 binary
# ------------------------------------------------------------------------------
# Diff & merge hygiene
# ------------------------------------------------------------------------------
# Treat as text (better diffs)
*.md text
*.json text
*.xml text
*.yml text
*.yaml text
*.sql text
# Lockfiles rarely need diffs
package-lock.json -diff
yarn.lock -diff
pnpm-lock.yaml -diff
*.lock -diff
# Force binary merges
*.jar merge=binary
*.class merge=binary
*.dll merge=binary
*.exe merge=binary
*.so merge=binary
*.dylib merge=binary
*.db merge=binary
*.sqlite merge=binary
*.pdf merge=binary
*.png merge=binary
*.jpg merge=binary
*.jpeg merge=binary
*.gif merge=binary
*.ico merge=binary
*.svg merge=binary
*.webp merge=binary
*.zip merge=binary
*.tar merge=binary
*.tar.gz merge=binary
*.tgz merge=binary
*.7z merge=binary
*.gz merge=binary
*.xz merge=binary
*.bz2 merge=binary
# Lock files: prefer ours
*.lock merge=ours
# ------------------------------------------------------------------------------
# GitHub Linguist overrides (make languages visible in stats)
# ------------------------------------------------------------------------------
*.yml linguist-detectable=true
*.yaml linguist-detectable=true
*.xml linguist-detectable=true
*.json linguist-detectable=true
*.md linguist-detectable=true
*.sql linguist-detectable=true
*.md linguist-detectable=true linguist-language=Markdown
*.txt linguist-detectable=true
# Force correct language classification
*.xml linguist-language=XML
*.json linguist-language=JSON
*.yml linguist-language=YAML
*.yaml linguist-language=YAML
*.sql linguist-language=SQL
*.md linguist-detectable=true linguist-language=Markdown
*.txt linguist-detectable=true
# ------------------------------------------------------------------------------
# Export settings (exclude from `git archive`)
# ------------------------------------------------------------------------------
.gitattributes export-ignore
.gitignore export-ignore
.github/ export-ignore
tools/ export-ignore