Skip to content

Commit feff00e

Browse files
committed
Add .gitattributes file to force text line endings to LF.
Some files are excluded, otherwise a whole lot of files need converting.
1 parent a102e01 commit feff00e

File tree

3 files changed

+299
-268
lines changed

3 files changed

+299
-268
lines changed

.gitattributes

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Per default everything gets normalized and gets LF line endings on checkout.
2+
* text eol=lf
3+
4+
# These will always have CRLF line endings on checkout.
5+
*.vcxproj text eol=crlf
6+
*.props text eol=crlf
7+
*.bat text eol=crlf
8+
9+
# These are binary so should never be modified by git.
10+
*.png binary
11+
*.jpg binary
12+
*.dxf binary
13+
14+
# These should also not be modified by git.
15+
tests/basics/string_cr_conversion.py -text
16+
tests/basics/string_crlf_conversion.py -text
17+
stmhal/startup_stm32f40xx.s -text
18+
stmhal/pybcdc.inf_template -text
19+
stmhal/usbd_* -text
20+
stmhal/boards/*/stm32f4xx_hal_conf.h -text
21+
stmhal/cmsis/** -text
22+
stmhal/hal/** -text
23+
stmhal/usbdev/** -text
24+
stmhal/usbhost/** -text
25+
cc3200/hal/aes.c -text
26+
cc3200/hal/aes.h -text
27+
cc3200/hal/des.c -text
28+
cc3200/hal/i2s.c -text
29+
cc3200/hal/i2s.h -text
30+
cc3200/version.h -text
31+
lib/fatfs/** -text

0 commit comments

Comments
 (0)