Add .gitattributes and .gitignore files and normalize line endings in the repository...
[reactos.git] / .gitattributes
1 # Set the default behavior, in case people don't have core.autocrlf set.
2 * text=auto
3
4 # Files with these extensions are accepted source files inside the ReactOS
5 # tree. They should have native line endings of the OS.
6 *.acf text
7 *.asm text
8 *.c text
9 *.cc text
10 *.cmake text
11 *.cpp text
12 *.cxx text
13 *.h text
14 *.hpp text
15 *.hxx text
16 *.idl text
17 *.inc text
18 *.inl text
19 *.klc text
20 *.l text
21 *.lds text
22 *.md text
23 *.rc text
24 *.s text
25 *.S text
26 *.sfd text
27 *.spec text
28 *.svg text
29 *.txt text
30 *.TXT text
31 *.y text
32
33 # Files with these extensions end up in the built ReactOS system, so they
34 # need to have CRLF line endings.
35 *.bat text eol=crlf
36 *.cmd text eol=crlf
37 *.exp text eol=crlf
38 *.hhc text eol=crlf
39 *.hhp text eol=crlf
40 *.ini text eol=crlf
41 *.INI text eol=crlf
42 *.inf text eol=crlf
43 *.inf.tpl text eol=crlf
44 *.js text eol=crlf
45 *.manifest text eol=crlf
46 *.mc text eol=crlf
47 *.mof text eol=crlf
48 *.rgs text eol=crlf
49 *.sif text eol=crlf
50 *.vbs text eol=crlf
51 *.vcxproj text eol=crlf
52
53 # Files with these extensions are accepted binary files inside the ReactOS
54 # tree. Git must not tamper with them at all!
55 *.avi binary
56 *.bin binary
57 *.bmf binary
58 *.bmp binary
59 *.BMP binary
60 *.chm binary
61 *.cur binary
62 *.dll binary
63 *.emf binary
64 *.gif binary
65 *.ico binary
66 *.jpg binary
67 *.mp3 binary
68 *.nls binary
69 *.otf binary
70 *.pdn binary
71 *.pfb binary
72 *.pfm binary
73 *.png binary
74 *.psd binary
75 *.ttc binary
76 *.ttf binary
77 *.wav binary
78 *.xcf binary
79
80 # All other extensions not explicitly mentioned here are left for Git to
81 # handle automatically.
82 # You must not rely on them having a particular line ending style!