-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.gitattributes
More file actions
42 lines (40 loc) · 1.74 KB
/
Copy path.gitattributes
File metadata and controls
42 lines (40 loc) · 1.74 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
# Enforce LF line endings everywhere.
#
# `text=auto` lets git auto-detect text vs binary; `eol=lf` forces text files to
# LF both in the repository AND on checkout — so a Windows working tree can never
# reintroduce CRLF, and every contributor commits LF regardless of their local
# core.autocrlf. This is the authoritative rule; .editorconfig just nudges
# editors to match.
* text=auto eol=lf
# Binary assets — never normalize (belt-and-suspenders over git's own auto
# detection, so a renormalize can never corrupt them).
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.webp binary
*.woff binary
*.woff2 binary
*.ttf binary
*.otf binary
*.glb binary
*.wasm binary
# Large media in Git LFS. Video is the only thing in this repo big enough to
# matter: the homepage demo has been re-recorded three times and every version
# is still in the pack, so roughly 63 MB of a ~127 MB clone is video — over
# half of it files that no longer exist on any branch.
#
# This stops the bleeding going forward (each future re-record costs a pointer,
# not another 15 MB blob) but does NOT shrink an existing clone: the blobs
# already in history only go away with `git lfs migrate import --everything`
# and a force-push, which rewrites every SHA and breaks open PRs and forks.
#
# `-text` here replaces the plain `binary` these two patterns used to carry —
# `binary` is shorthand for `-text -diff`, and LFS needs its own `diff=lfs`.
#
# Anything checked out through LFS must be fetched by CI that reads it:
# .github/workflows/docs.yml passes `lfs: true` to actions/checkout for exactly
# this reason. Without it the built site ships 130-byte pointer files.
*.mp4 filter=lfs diff=lfs merge=lfs -text
*.webm filter=lfs diff=lfs merge=lfs -text