-
-
Notifications
You must be signed in to change notification settings - Fork 188
/
.gitattributes
47 lines (40 loc) · 999 Bytes
/
.gitattributes
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
# Ensure LF line endings in the repository and proper handling on checkouts
* text=auto
# C++ source and header files
*.cpp text diff=cpp
*.h text diff=cpp
*.hpp text diff=cpp
*.cxx text diff=cpp
*.cc text diff=cpp
# Treat project files that are often not merge-friendly as binary to avoid merge conflicts
*.sln binary
*.vcxproj binary
*.vcproj binary
*.proj binary
*.projitems binary
*.filters binary
# Treat build scripts and cmake configs as text
*.bat text eol=crlf
*.sh text eol=lf
CMakeLists.txt text
*.cmake text
# Image files are treated as binary to prevent corruption
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
# Documentation and other text formats should have normalized line endings
*.md text
*.txt text
*.rtf text
# Lock binary files to avoid line ending modifications
*.exe binary
*.dll binary
*.so binary
*.lib binary
*.obj binary
*.o binary
# Ensure that diffs for certain types of files are handled correctly
*.json text diff=json
*.xml text diff=xml