1- # SPDX-License-Identifier: MPL-2.0
2- # this file specifies some rules on specific files for line endings and more.
3- # it also has a section on which files should NOT be part of an export (git archive) command.
4-
5- # List of files to NOT export:
6- .git export-ignore
7- .github export-ignore
8- .cirrus.yml export-ignore
9- .whitesource export-ignore
10- .vscode export-ignore
11- .travis.yml export-ignore
12-
13- # force specific line endings:
14- * .sh eol =lf
1+ # SPDX-License-Identifier: MIT AND MPL-2.0
2+
3+ # See https://github.com/gitattributes/gitattributes/tree/master
4+
5+ # Common settings that generally should always be used with your language specific settings
6+
7+ # Auto detect text files and perform LF normalization
8+ * text =auto
9+
10+ #
11+ # The above will handle all files NOT found below
12+ #
13+
14+ # Documents
15+ * .bibtex text diff =bibtex
16+ * .doc diff =astextplain
17+ * .DOC diff =astextplain
18+ * .docx diff =astextplain
19+ * .DOCX diff =astextplain
20+ * .dot diff =astextplain
21+ * .DOT diff =astextplain
22+ * .pdf diff =astextplain
23+ * .PDF diff =astextplain
24+ * .rtf diff =astextplain
25+ * .RTF diff =astextplain
26+ * .md text diff =markdown
27+ * .mdx text diff =markdown
28+ * .tex text diff =tex
29+ * .adoc text
30+ * .textile text
31+ * .mustache text
32+ * .csv text eol =crlf
33+ * .tab text
34+ * .tsv text
35+ * .sql text
36+ * .epub diff =astextplain
37+ * .ini text eol =lf
38+ * .toml text eol =lf
39+ * .conf text eol =lf
40+
41+ # Make txt files use CRLF line endings and match the .editorconfig settings.
42+ * .txt text eol =crlf
43+
44+ # Graphics
45+ * .png binary
46+ * .jpg binary
47+ * .jpeg binary
48+ * .gif binary
49+ * .tif binary
50+ * .tiff binary
51+ * .ico binary
52+ # SVG treated as text by default.
53+ * .svg text
54+ # If you want to treat it as binary,
55+ # use the following line instead.
56+ # *.svg binary
57+ * .eps binary
58+
59+ # Scripts
60+ * .bash text eol =lf
61+ * .fish text eol =lf
62+ * .ksh text eol =lf
63+ * .sh text eol =lf
64+ * .zsh text eol =lf
65+ # These are explicitly windows files and should use crlf
66+ * .bat text eol =crlf
67+ * .cmd text eol =crlf
68+ * .ps1 text eol =crlf
69+
70+ # Serialization
71+ * .json text
72+ * .toml text
73+ * .xml text
74+ * .yaml text
75+ * .yml text
76+
77+ # Archives
78+ * .7z binary
79+ * .bz binary
80+ * .bz2 binary
81+ * .bzip2 binary
82+ * .gz binary
83+ * .lz binary
84+ * .lzma binary
85+ * .rar binary
86+ * .tar binary
87+ * .taz binary
88+ * .tbz binary
89+ * .tbz2 binary
90+ * .tgz binary
91+ * .tlz binary
92+ * .txz binary
93+ * .xz binary
94+ * .Z binary
95+ * .zip binary
96+ * .zst binary
97+
98+ # Text files where line endings should be preserved
99+ * .patch - text
100+
101+ # Sources
102+ * .c text diff =cpp
103+ * .cc text diff =cpp
104+ * .cxx text diff =cpp
105+ * .cpp text diff =cpp
106+ * .cpi text diff =cpp
107+ * .c++ text diff =cpp
108+ * .hpp text diff =cpp
109+ * .h text diff =cpp
110+ * .h++ text diff =cpp
111+ * .hh text diff =cpp
112+
113+ # Compiled Object files
114+ * .slo binary
115+ * .lo binary
116+ * .o binary
117+ * .obj binary
118+
119+ # Precompiled Headers
120+ * .gch binary
121+ * .pch binary
122+
123+ # Compiled Dynamic libraries
124+ * .so binary
125+ * .dylib binary
126+ * .dll binary
127+
128+ # Compiled Static libraries
129+ * .lai binary
130+ * .la binary
131+ * .a binary
132+ * .lib binary
133+
134+ # Executables
135+ * .exe binary
136+ * .out binary
137+ * .app binary
138+
139+ # Apply override to all files in the directory
140+ * .md linguist-detectable
141+
142+ # Source files
143+ # ============
144+ * .ps1 text eol =crlf
145+ * .ps1x text eol =crlf
146+ * .psm1 text eol =crlf
147+ * .psd1 text eol =crlf
148+ * .ps1xml text eol =crlf
149+ * .pssc text eol =crlf
150+ * .psrc text eol =crlf
151+ * .cdxml text eol =crlf
152+
153+ # Source files
154+ # ============
155+ * .pxd text diff =python
156+ * .py text diff =python
157+ * .py3 text diff =python
158+ * .pyw text diff =python
159+ * .pyx text diff =python
160+ * .pyz text diff =python
161+ * .pyi text diff =python
162+
163+ # Binary files
164+ # ============
165+ * .db binary
166+ * .p binary
167+ * .pkl binary
168+ * .pickle binary
169+ * .pyc binary export-ignore
170+ * .pyo binary export-ignore
171+ * .pyd binary
172+
173+ # Jupyter notebook
174+ * .ipynb text eol =lf
175+
176+ # Note: .db, .p, and .pkl files are associated
177+ # with the python modules ``pickle``, ``dbm.*``,
178+ # ``shelve``, ``marshal``, ``anydbm``, & ``bsddb``
179+ # (among others).
180+
181+ # ##############################################################################
182+ # Set the merge driver for project and solution files
183+ #
184+ # Merging from the command prompt will add diff markers to the files if there
185+ # are conflicts (Merging from VS is not affected by the settings below, in VS
186+ # the diff markers are never inserted). Diff markers may cause the following
187+ # file extensions to fail to load in VS. An alternative would be to treat
188+ # these files as binary and thus will always conflict and require user
189+ # intervention with every merge. To do so, just comment the entries below and
190+ # uncomment the group further below
191+ # ##############################################################################
192+
193+ * .sln text eol =crlf
194+ * .csproj text eol =crlf
195+ * .vbproj text eol =crlf
196+ * .vcxproj text eol =crlf
197+ * .vcproj text eol =crlf
198+ * .dbproj text eol =crlf
199+ * .fsproj text eol =crlf
200+ * .lsproj text eol =crlf
201+ * .wixproj text eol =crlf
202+ * .modelproj text eol =crlf
203+ * .sqlproj text eol =crlf
204+ * .wwaproj text eol =crlf
205+
206+ * .xproj text eol =crlf
207+ * .props text eol =crlf
208+ * .filters text eol =crlf
209+ * .vcxitems text eol =crlf
210+
211+
212+ # *.sln merge=binary
213+ # *.csproj merge=binary
214+ # *.vbproj merge=binary
215+ # *.vcxproj merge=binary
216+ # *.vcproj merge=binary
217+ # *.dbproj merge=binary
218+ # *.fsproj merge=binary
219+ # *.lsproj merge=binary
220+ # *.wixproj merge=binary
221+ # *.modelproj merge=binary
222+ # *.sqlproj merge=binary
223+ # *.wwaproj merge=binary
224+
225+ # *.xproj merge=binary
226+ # *.props merge=binary
227+ # *.filters merge=binary
228+ # *.vcxitems merge=binary
229+
230+ # Fix syntax highlighting on GitHub to allow comments
231+ .vscode /* .json linguist-language =JSON-with-Comments
232+
233+ # meson files
234+ meson.build text diff =python
235+ meson.format text diff =python
236+ meson.options text diff =python
237+ meson_options.txt text diff =python
238+ * .wrap text eol =lf
239+
240+ #
241+ # Exclude files from exporting
242+ #
243+ .gitattributes export-ignore
244+ .gitignore export-ignore
245+ .gitkeep export-ignore
246+ .github export-ignore
247+ .cirrus.yml export-ignore
248+ .whitesource export-ignore
249+ .vscode export-ignore
0 commit comments