-
-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy path.gitattributes
More file actions
65 lines (59 loc) · 1.49 KB
/
Copy path.gitattributes
File metadata and controls
65 lines (59 loc) · 1.49 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
# Normalise line endings to LF in the repository (working tree gets LF too).
# Cross-platform contributors don't need to worry about CRLF/LF — the repo
# is the source of truth, and Git enforces LF on add/commit.
# Default: detect text vs binary, force LF on text.
* text=auto eol=lf
# Code
*.py text eol=lf
*.toml text eol=lf
*.json text eol=lf
*.yml text eol=lf
*.yaml text eol=lf
*.lock text eol=lf
*.txt text eol=lf
*.cfg text eol=lf
*.ini text eol=lf
# Docs / config
*.md text eol=lf
*.template text eol=lf
*.example text eol=lf
.gitignore text eol=lf
.gitattributes text eol=lf
LICENSE text eol=lf
# Shell scripts
*.sh text eol=lf
*.bash text eol=lf
# PowerShell handles LF fine on both PS 5.1 and Core, so keep .ps1 as LF.
# cmd.exe has historical edge cases with multi-line batch files, so .bat/.cmd
# stay CRLF.
*.ps1 text eol=lf
*.bat text eol=crlf
*.cmd text eol=crlf
# Binary — never touch
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.webp binary
*.ico binary
*.mp4 binary
*.mov binary
*.webm binary
*.mp3 binary
*.wav binary
*.flac binary
*.zip binary
*.tar binary
*.gz binary
*.bz2 binary
*.7z binary
*.pdf binary
*.woff binary
*.woff2 binary
*.ttf binary
*.otf binary
*.eot binary
*.so binary
*.dll binary
*.dylib binary
*.exe binary