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
# Normalize every text file to LF in the repository and in the working tree,
# so mixed CRLF/LF never reappears regardless of platform or tooling.
* text=auto
*.rs text eol=lf
*.md text eol=lf
*.toml text eol=lf
*.py text eol=lf
*.txt text eol=lf
*.json text eol=lf
# Shell scripts must be LF: a CRLF line ending makes bash read the terminator
# as "fi\r", which is an unmatched `if` and a hard syntax error. eval_real.sh
# hit exactly this.
*.sh text eol=lf
*.bash text eol=lf
# The pre-commit hook has no extension, so the two rules above do not reach it,
# and core.autocrlf would otherwise hand a fresh Windows clone a CRLF hook --
# the same "fi\r" syntax error, one directory over.
scripts/hooks/pre-commit text eol=lf
*.yml text eol=lf
*.yaml text eol=lf
*.ts text eol=lf
*.js text eol=lf
*.html text eol=lf
# Binary artifacts must never be renormalized.
*.bin binary
*.idx binary
*.pyc binary
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.mscope binary
*.zst binary
*.cryo binary