-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy path.gitattributes
More file actions
34 lines (30 loc) · 904 Bytes
/
Copy path.gitattributes
File metadata and controls
34 lines (30 loc) · 904 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
# Force LF line endings on text files so shell scripts and Python work
# correctly when cloned on Linux / macOS by a contributor on Windows.
# Without this, `git config --global core.autocrlf true` on a Windows clone
# checks out *.sh with CRLF and Linux/macOS produces "bad interpreter:
# /usr/bin/env bash^M".
* text=auto
# Scripts and source — always LF
*.sh text eol=lf
*.bash text eol=lf
*.py text eol=lf
*.toml text eol=lf
*.yaml text eol=lf
*.yml text eol=lf
*.json text eol=lf
*.md text eol=lf
# Windows-only batch files — CRLF
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf
# Binary blobs — never normalize
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.pdf binary
*.zip binary
*.gz binary
*.tar binary
*.wasm binary