-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy path.gitattributes
More file actions
284 lines (238 loc) · 7.29 KB
/
.gitattributes
File metadata and controls
284 lines (238 loc) · 7.29 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
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
# Git attributes configuration for Sanmill project
# This file ensures consistent line endings, proper binary handling, and language detection
#######################################
# Default behavior for text files
#######################################
# Automatically normalize line endings for all text files
* text=auto
#######################################
# Shell and scripting files
#######################################
# Shell scripts must use LF line endings (Unix-style)
*.sh text eol=lf
*.bash text eol=lf
# Batch/PowerShell scripts use CRLF line endings (Windows-style)
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf
# Python scripts use LF line endings
*.py text eol=lf
#######################################
# Flutter/Dart specific files
#######################################
# Dart source files
*.dart text eol=lf
# Flutter configuration files
pubspec.yaml text eol=lf
pubspec.lock text eol=lf
analysis_options.yaml text eol=lf
l10n.yaml text eol=lf
flutter_native_splash.yaml text eol=lf
# Generated files (usually should not be committed, but if they are)
*.g.dart text eol=lf linguist-generated=true
*.freezed.dart text eol=lf linguist-generated=true
# Flutter internationalization files
*.arb text eol=lf linguist-language=JSON
#######################################
# Configuration and markup files
#######################################
# YAML files
*.yaml text eol=lf
*.yml text eol=lf
# JSON files
*.json text eol=lf
# XML files
*.xml text eol=lf
# Markdown and documentation
*.md text eol=lf
*.txt text eol=lf
README* text eol=lf
LICENSE* text eol=lf
CHANGELOG* text eol=lf
# Git configuration files
.gitignore text eol=lf
.gitattributes text eol=lf
# Environment and configuration files
*.env text eol=lf
*.properties text eol=lf
*.conf text eol=lf
*.ini text eol=lf
#######################################
# Build and platform-specific files
#######################################
# CMake files (for Linux/C++ builds)
CMakeLists.txt text eol=lf
*.cmake text eol=lf
# Gradle files (for Android builds)
*.gradle text eol=lf
gradle.properties text eol=lf
gradlew text eol=lf
gradlew.bat text eol=crlf
# iOS/macOS project files
*.pbxproj text eol=lf
*.plist text eol=lf
*.storyboard text eol=lf
*.xcconfig text eol=lf
# Windows project files
*.vcxproj text eol=crlf
*.sln text eol=crlf
*.props text eol=crlf
*.targets text eol=crlf
# Windows project template files
*.sln.tmpl text eol=crlf
*.props.tmpl text eol=crlf
*.vcxproj.tmpl text eol=crlf
*.vcxproj.filters.tmpl text eol=crlf
*.rc text eol=crlf
#######################################
# Binary files (explicitly marked)
#######################################
# Images
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.svg binary
*.webp binary
*.bmp binary
*.tiff binary
# Audio files
*.mp3 binary
*.wav binary
*.ogg binary
*.m4a binary
*.aac binary
*.flac binary
# Video files
*.mp4 binary
*.avi binary
*.mov binary
*.mkv binary
# Database and data files (Sanmill-specific)
*.db binary
*.sqlite binary
*.sec2 binary
*.secval binary
# Archives and compressed files
*.zip binary
*.tar binary
*.gz binary
*.7z binary
*.rar binary
*.bz2 binary
*.xz binary
# Native libraries
*.so binary
*.dylib binary
*.dll binary
*.exe binary
*.a binary
*.lib binary
# Flutter build artifacts (should be in .gitignore, but marking as binary)
*.dill binary
*.kernel binary
*.snapshot binary
# Fonts
*.ttf binary
*.otf binary
*.woff binary
*.woff2 binary
*.eot binary
# Office documents
*.xlsx binary
*.xls binary
*.docx binary
*.doc binary
*.pptx binary
*.ppt binary
*.pdf binary
# Java/Android specific binaries
*.jar binary
*.aar binary
*.apk binary
*.class binary
# iOS specific binaries
*.ipa binary
*.framework binary
#######################################
# Special handling for specific files
#######################################
# Flutter lock file should not have merge conflicts
pubspec.lock merge=ours
# Generated assets should be treated as generated
lib/generated/** linguist-generated=true
lib/**/*.g.dart linguist-generated=true
lib/**/*.freezed.dart linguist-generated=true
# Test files should be excluded from language statistics
test/** linguist-vendored=true
integration_test/** linguist-vendored=true
test_driver/** linguist-vendored=true
# Build directories should be excluded
build/** linguist-vendored=true
.dart_tool/** linguist-vendored=true
# IDE configuration files
.vscode/** linguist-vendored=true
.idea/** linguist-vendored=true
*.iml linguist-vendored=true
# Platform-specific build files should be excluded from language stats
android/** linguist-vendored=true
ios/** linguist-vendored=true
linux/** linguist-vendored=true
macos/** linguist-vendored=true
windows/** linguist-vendored=true
web/** linguist-vendored=true
# Translation/localization files should not affect language statistics
lib/l10n/*.arb linguist-vendored=true
#######################################
# Language detection overrides
#######################################
# Ensure Dart is properly detected as the main language
*.dart linguist-language=Dart
# Prevent certain files from affecting language statistics
*.g.dart linguist-generated=true
*.freezed.dart linguist-generated=true
*.config.dart linguist-generated=true
*.arb linguist-language=JSON
# Force detection for specific file types
*.gradle linguist-language=Gradle
CMakeLists.txt linguist-language=CMake
#######################################
# Diff and merge settings
#######################################
# Use custom diff for Dart files to better handle formatting
*.dart diff=dart
# JSON files should use JSON diff highlighting
*.json diff=json
*.arb diff=json
# Binary files should not be diffed
*.png -diff
*.jpg -diff
*.jpeg -diff
*.gif -diff
*.ico -diff
*.mp3 -diff
*.wav -diff
*.ogg -diff
*.db -diff
*.sqlite -diff
*.sec2 -diff
*.secval -diff
*.zip -diff
*.tar -diff
*.gz -diff
*.xlsx -diff
*.pdf -diff
*.jar -diff
*.apk -diff
*.ipa -diff
#######################################
# Merge strategies for specific files
#######################################
# Changelog files should use union merge to avoid conflicts
CHANGELOG* merge=union
# Version files might need special handling
VERSION merge=ours
version.txt merge=ours
# Localization files should use union merge when possible
*.arb merge=union