-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy path.gitattributes
More file actions
41 lines (36 loc) · 975 Bytes
/
.gitattributes
File metadata and controls
41 lines (36 loc) · 975 Bytes
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
# Normalize text files to LF in repo and working tree (cross‑platform friendly)
* text=auto eol=lf
# Windows batch scripts should use CRLF
*.bat text eol=crlf
# Common source / config files: keep LF explicitly
*.py text eol=lf
*.pyi text eol=lf
*.sh text eol=lf
Makefile text eol=lf
*.toml text eol=lf
*.ini text eol=lf
*.cfg text eol=lf
*.yml text eol=lf
*.yaml text eol=lf
*.json text eol=lf
*.md text eol=lf
*.rst text eol=lf
# Binary assets: never touch line endings or diff them
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.pdf binary
*.zip binary
*.tar binary
*.gz binary
*.tgz binary
*.xz binary
*.bz2 binary
*.whl binary
# Patch artifacts should not be normalized
*.diff -text
*.patch -text
# Exclude CI meta from GitHub source archives (git archive), keep code clean
/.github export-ignore