-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.gitattributes
More file actions
58 lines (52 loc) · 2.05 KB
/
Copy path.gitattributes
File metadata and controls
58 lines (52 loc) · 2.05 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
# § CSSLv3 .gitattributes
# § I> force LF line endings on all text files, cross-platform-safe
# § I> reason : T7-phase-2d-R18 session surfaced Windows `core.autocrlf=true` ×
# `git worktree add` × `cargo fmt` = cross-worktree file-leakage through
# line-ending normalization. Pinning `eol=lf` on text files removes the
# normalization step that caused the leakage.
# § I> binary types listed explicitly so line-ending normalization skips them
# ─── default ────────────────────────────────────────────────────────────
# Treat every non-matched path as text + use LF endings on checkout/checkin.
* text=auto eol=lf
# ─── source-code extensions ────────────────────────────────────────────
*.rs text eol=lf
*.toml text eol=lf
*.md text eol=lf
*.csl text eol=lf
*.cssl text eol=lf
*.cssl-csl text eol=lf
*.cssl-rust text eol=lf
*.py text eol=lf
*.yml text eol=lf
*.yaml text eol=lf
*.lock text eol=lf
*.json text eol=lf
*.sh text eol=lf
*.bat text eol=crlf
# ─── documentation shapes ──────────────────────────────────────────────
*.html text eol=lf
*.css text eol=lf
# ─── binary types (must skip normalization) ─────────────────────────────
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.webp binary
*.pdf binary
*.zip binary
*.tar binary
*.gz binary
*.exe binary
*.dll binary
*.so binary
*.dylib binary
*.wasm binary
*.bin binary
*.spv binary
*.dxil binary
# ─── shader / asset sources (force LF for reproducibility) ──────────────
*.wgsl text eol=lf
*.hlsl text eol=lf
*.glsl text eol=lf
*.msl text eol=lf
# § END .gitattributes