-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitattributes
More file actions
171 lines (147 loc) · 3.14 KB
/
.gitattributes
File metadata and controls
171 lines (147 loc) · 3.14 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
# pH7Console - Git Attributes Configuration
# === Text Files ===
* text=auto eol=lf
# === Source Code ===
*.rs text diff=rust
*.toml text
*.ts text
*.tsx text
*.js text
*.jsx text
*.json text
*.md text
*.yml text
*.yaml text
# === Configuration Files ===
*.conf text
*.config text
*.ini text
.gitignore text
.gitattributes text
.editorconfig text
# === Documentation ===
*.txt text
*.rtf text
README* text
CHANGELOG* text
LICENSE* text
CONTRIBUTING* text
# === Web Assets ===
*.html text diff=html
*.css text diff=css
*.scss text
*.sass text
*.less text
*.svg text
# === Scripts ===
*.sh text eol=lf
*.bash text eol=lf
*.zsh text eol=lf
*.fish text eol=lf
*.ps1 text eol=crlf
# === Binary Files ===
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.bmp binary
*.tiff binary
*.webp binary
# === Fonts ===
*.woff binary
*.woff2 binary
*.eot binary
*.ttf binary
*.otf binary
# === Archives ===
*.zip binary
*.tar binary
*.gz binary
*.bz2 binary
*.xz binary
*.7z binary
*.rar binary
# === AI Models (Large Binary Files) ===
*.bin binary filter=lfs diff=lfs merge=lfs
*.safetensors binary filter=lfs diff=lfs merge=lfs
*.gguf binary filter=lfs diff=lfs merge=lfs
*.ggml binary filter=lfs diff=lfs merge=lfs
*.model binary filter=lfs diff=lfs merge=lfs
# === Application Binaries ===
*.exe binary
*.dll binary
*.so binary
*.dylib binary
*.app binary
*.dmg binary
*.msi binary
*.deb binary
*.rpm binary
*.AppImage binary
# === Development Database Files ===
*.db binary
*.sqlite binary
*.sqlite3 binary
# === Certificates ===
*.p12 binary
*.pfx binary
*.keystore binary
# === Media Files ===
*.mp3 binary
*.mp4 binary
*.avi binary
*.mov binary
*.wmv binary
*.flv binary
*.wav binary
*.ogg binary
# === Special Handling ===
# Rust - Use rustfmt for formatting
*.rs filter=rustfmt
# TypeScript/JavaScript - Ensure consistent line endings
*.ts filter=prettier
*.tsx filter=prettier
*.js filter=prettier
*.jsx filter=prettier
*.json filter=prettier
# Tauri configuration - Critical for cross-platform builds
src-tauri/tauri.conf.json text eol=lf
src-tauri/Cargo.toml text eol=lf
src-tauri/Cargo.lock text eol=lf
# Package files
package.json text eol=lf
package-lock.json text eol=lf linguist-generated=true
yarn.lock text eol=lf linguist-generated=true
pnpm-lock.yaml text eol=lf linguist-generated=true
# === Linguist Overrides ===
# Mark generated files
/dist/* linguist-generated=true
/build/* linguist-generated=true
/target/* linguist-generated=true
*.generated.* linguist-generated=true
# Language detection overrides
*.rs linguist-language=Rust
*.ts linguist-language=TypeScript
*.tsx linguist-language=TypeScript
# Documentation
*.md linguist-documentation=true
docs/* linguist-documentation=true
# === Export Ignore (for git archive) ===
.gitignore export-ignore
.gitattributes export-ignore
.github/ export-ignore
.vscode/ export-ignore
*.md export-ignore
/docs/ export-ignore
/examples/ export-ignore
/tests/ export-ignore
node_modules/ export-ignore
src-tauri/target/ export-ignore
# === Merge Strategies ===
# Always use ours for generated files
package-lock.json merge=ours
yarn.lock merge=ours
Cargo.lock merge=ours
# Use union merge for changelog
CHANGELOG.md merge=union