Skip to content

Commit d907922

Browse files
authored
import .gitattributes from CPython (RustPython#6939)
1 parent 153b0da commit d907922

File tree

1 file changed

+61
-1
lines changed

1 file changed

+61
-1
lines changed

.gitattributes

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,65 @@ Cargo.lock linguist-generated
44
vm/src/stdlib/ast/gen.rs linguist-generated -merge
55
Lib/*.py text working-tree-encoding=UTF-8 eol=LF
66
**/*.rs text working-tree-encoding=UTF-8 eol=LF
7-
*.pck binary
87
crates/rustpython_doc_db/src/*.inc.rs linguist-generated=true
8+
9+
# Binary data types
10+
*.aif binary
11+
*.aifc binary
12+
*.aiff binary
13+
*.au binary
14+
*.bmp binary
15+
*.exe binary
16+
*.icns binary
17+
*.gif binary
18+
*.ico binary
19+
*.jpg binary
20+
*.pck binary
21+
*.pdf binary
22+
*.png binary
23+
*.psd binary
24+
*.tar binary
25+
*.wav binary
26+
*.whl binary
27+
*.zip binary
28+
29+
# Text files that should not be subject to eol conversion
30+
[attr]noeol -text
31+
32+
Lib/test/cjkencodings/* noeol
33+
Lib/test/tokenizedata/coding20731.py noeol
34+
Lib/test/decimaltestdata/*.decTest noeol
35+
Lib/test/test_email/data/*.txt noeol
36+
Lib/test/xmltestdata/* noeol
37+
38+
# Shell scripts should have LF even on Windows because of Cygwin
39+
Lib/venv/scripts/common/activate text eol=lf
40+
Lib/venv/scripts/posix/* text eol=lf
41+
42+
# CRLF files
43+
[attr]dos text eol=crlf
44+
45+
# Language aware diff headers
46+
# https://tekin.co.uk/2020/10/better-git-diff-output-for-ruby-python-elixir-and-more
47+
# https://gist.github.com/tekin/12500956bd56784728e490d8cef9cb81
48+
*.css diff=css
49+
*.html diff=html
50+
*.py diff=python
51+
*.md diff=markdown
52+
53+
# Generated files
54+
# https://github.com/github/linguist/blob/master/docs/overrides.md
55+
#
56+
# To always hide generated files in local diffs, mark them as binary:
57+
# $ git config diff.generated.binary true
58+
#
59+
[attr]generated linguist-generated=true diff=generated
60+
61+
Lib/_opcode_metadata.py generated
62+
Lib/keyword.py generated
63+
Lib/idlelib/help.html generated
64+
Lib/test/certdata/*.pem generated
65+
Lib/test/certdata/*.0 generated
66+
Lib/test/levenshtein_examples.json generated
67+
Lib/test/test_stable_abi_ctypes.py generated
68+
Lib/token.py generated

0 commit comments

Comments
 (0)