-
Notifications
You must be signed in to change notification settings - Fork 399
Expand file tree
/
Copy path.gitattributes
More file actions
79 lines (71 loc) · 1.79 KB
/
.gitattributes
File metadata and controls
79 lines (71 loc) · 1.79 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
# Enforce LF line endings for all text files (cross-platform consistency)
* text=auto eol=lf
# =============================================================================
# TRANSLATION FORK MERGE STRATEGY
# =============================================================================
# This is an English translation fork of a Chinese upstream repository.
# The README.md will always conflict because:
# - Fork: English README (intentional localization)
# - Upstream: Chinese README
#
# The 'merge=ours' strategy tells Git to always keep our (fork's) version
# during merges. This serves as additional protection alongside the workflow
# conflict handling in .github/workflows/upstream-sync.yml
# =============================================================================
README.md merge=ours
# Binary files (no line ending conversion)
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.woff binary
*.woff2 binary
*.ttf binary
*.eot binary
*.pyc binary
*.pyd binary
*.so binary
*.dll binary
*.exe binary
*.zip binary
*.tar binary
*.gz binary
*.db binary
*.sqlite binary
*.sqlite3 binary
# Python files (explicit LF)
*.py text eol=lf
*.pyi text eol=lf
*.pyx text eol=lf
# Configuration files
*.toml text eol=lf
*.ini text eol=lf
*.cfg text eol=lf
*.conf text eol=lf
*.yaml text eol=lf
*.yml text eol=lf
*.json text eol=lf
*.md text eol=lf
*.txt text eol=lf
.env* text eol=lf
.gitignore text eol=lf
.gitattributes text eol=lf
# Shell scripts
*.sh text eol=lf
*.bash text eol=lf
# Windows scripts (keep CRLF for Windows)
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf
# JavaScript/TypeScript
*.js text eol=lf
*.ts text eol=lf
*.jsx text eol=lf
*.tsx text eol=lf
*.css text eol=lf
*.scss text eol=lf
*.html text eol=lf
# Lock files
poetry.lock text eol=lf
package-lock.json text eol=lf