Skip to content

Commit a2e9a1d

Browse files
committed
Add missing .gitattributes to fix mixed line endings
+ add `build_*`, `build.*` to ignored folders
1 parent 6118c5a commit a2e9a1d

2 files changed

Lines changed: 47 additions & 28 deletions

File tree

.gitattributes

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# By default, enforce CRLF line-endings on all text files
2+
* text=auto eol=crlf
3+
*.c text eol=crlf
4+
*.cc text eol=crlf
5+
*.cpp text eol=crlf
6+
*.cxx text eol=crlf
7+
*.h text eol=crlf
8+
*.hpp text eol=crlf
9+
*.hxx text eol=crlf
10+
*.txt text eol=crlf
11+
12+
# Visual Studio
13+
*.sln eol=crlf
14+
*.slnx eol=crlf
15+
*.vcxproj eol=crlf
16+
*.vcxproj.filters eol=crlf
17+
*.rc eol=crlf
18+
*.rc2 eol=crlf
19+
*.props eol=crlf
20+
*.natvis eol=crlf

.gitignore

Lines changed: 27 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,27 @@
1-
obj/
2-
Debug/
3-
Debug (Unicode)/
4-
Release/
5-
Release (Unicode)/
6-
Win32/
7-
x64/
8-
*.vcxproj.user
9-
*.*sdf
10-
*.suo
11-
ipch/
12-
setup/vld-*-setup.exe
13-
setup/Output/
14-
setup/version.h
15-
build_x86/
16-
build_x64/
17-
build_arm64/
18-
lib/gtest/msvc/bin/
19-
_ReSharper.Caches/
20-
lib/cppformat/bin/
21-
src/bin/vld.ini
22-
/src/tests/vld_ComTest/ComTest_i.h
23-
/src/tests/vld_ComTest/ComTest_p.c
24-
/src/tests/vld_ComTest/ComTest_i.c
25-
*.VC.opendb
26-
*.VC.db
27-
*.aps
28-
.vs/
1+
obj/
2+
Debug/
3+
Debug (Unicode)/
4+
Release/
5+
Release (Unicode)/
6+
Win32/
7+
x64/
8+
*.vcxproj.user
9+
*.*sdf
10+
*.suo
11+
ipch/
12+
setup/vld-*-setup.exe
13+
setup/Output/
14+
setup/version.h
15+
build_*/
16+
build.*/
17+
lib/gtest/msvc/bin/
18+
_ReSharper.Caches/
19+
lib/cppformat/bin/
20+
src/bin/vld.ini
21+
/src/tests/vld_ComTest/ComTest_i.h
22+
/src/tests/vld_ComTest/ComTest_p.c
23+
/src/tests/vld_ComTest/ComTest_i.c
24+
*.VC.opendb
25+
*.VC.db
26+
*.aps
27+
.vs/

0 commit comments

Comments
 (0)