Skip to content

Commit 77ca26f

Browse files
Add line-ending attributes
1 parent cefe1f5 commit 77ca26f

1 file changed

Lines changed: 113 additions & 0 deletions

File tree

.gitattributes

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
# Cross-platform line-ending policy.
2+
# Store text with LF in Git so Windows and WSL clones stay stable.
3+
* text=auto eol=lf
4+
5+
# Windows command files conventionally use CRLF.
6+
*.bat text eol=crlf
7+
*.cmd text eol=crlf
8+
*.ps1 text eol=crlf
9+
10+
# Source, firmware, scripts, config, and docs.
11+
*.c text eol=lf
12+
*.cc text eol=lf
13+
*.cpp text eol=lf
14+
*.h text eol=lf
15+
*.hh text eol=lf
16+
*.hpp text eol=lf
17+
*.ino text eol=lf
18+
*.py text eol=lf
19+
*.js text eol=lf
20+
*.ts text eol=lf
21+
*.jsx text eol=lf
22+
*.tsx text eol=lf
23+
*.css text eol=lf
24+
*.html text eol=lf
25+
*.sh text eol=lf
26+
*.bash text eol=lf
27+
*.zsh text eol=lf
28+
*.md text eol=lf
29+
*.rst text eol=lf
30+
*.txt text eol=lf
31+
*.csv text eol=lf
32+
*.json text eol=lf
33+
*.toml text eol=lf
34+
*.ini text eol=lf
35+
*.cfg text eol=lf
36+
*.conf text eol=lf
37+
*.yml text eol=lf
38+
*.yaml text eol=lf
39+
*.xml text eol=lf
40+
*.svg text eol=lf
41+
*.drawio text eol=lf
42+
*.scad text eol=lf
43+
*.gcode text eol=lf
44+
Makefile text eol=lf
45+
*.mk text eol=lf
46+
47+
# Electronics/CAD text formats.
48+
*.kicad_pcb text eol=lf
49+
*.kicad_sch text eol=lf
50+
*.kicad_pro text eol=lf
51+
*.kicad_prl text eol=lf
52+
*.kicad_mod text eol=lf
53+
*.kicad_sym text eol=lf
54+
*.sch text eol=lf
55+
*.pro text eol=lf
56+
*.net text eol=lf
57+
*.lib text eol=lf
58+
*.gbr text eol=lf
59+
*.drl text eol=lf
60+
*.qet text eol=lf
61+
*.plcprj text eol=lf
62+
*.wkpx text eol=lf
63+
64+
# Binary assets and generated artifacts.
65+
*.png binary
66+
*.PNG binary
67+
*.jpg binary
68+
*.JPG binary
69+
*.jpeg binary
70+
*.gif binary
71+
*.bmp binary
72+
*.ico binary
73+
*.webp binary
74+
*.tif binary
75+
*.tiff binary
76+
*.xcf binary
77+
*.psd binary
78+
*.pdf binary
79+
*.odt binary
80+
*.ods binary
81+
*.xlsx binary
82+
*.vsdx binary
83+
*.zip binary
84+
*.7z binary
85+
*.tar binary
86+
*.gz binary
87+
*.tgz binary
88+
*.bz2 binary
89+
*.xz binary
90+
*.rar binary
91+
*.bin binary
92+
*.hex binary
93+
*.elf binary
94+
*.mpy binary
95+
*.pyc binary
96+
*.stl binary
97+
*.STL binary
98+
*.step binary
99+
*.STEP binary
100+
*.stp binary
101+
*.STP binary
102+
*.3mf binary
103+
*.FCStd binary
104+
*.fcstd binary
105+
*.FCBak binary
106+
*.fcbak binary
107+
*.sldprt binary
108+
*.SLDPRT binary
109+
*.sldasm binary
110+
*.SLDASM binary
111+
*.f3d binary
112+
*.sl1 binary
113+
*.imgx binary

0 commit comments

Comments
 (0)